473,320 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can any One Make me Understand Linked List Program in Java

Write a program of LinkedList do not Use LinkedList Class.
May 6 '13 #1
1 1255
Nepomuk
3,112 Expert 2GB
That sounds like homework; according to How to ask a question we won't answer those questions.

To understand how to answer this yourself, first you have to understand how a Linked list works. The examples in that linked Wikipedia article are not written in Java, but they could help you understand the concept. Then try to create a node in Java which contains some kind of information. (If you want to go the professional way, make it generic.) Then link it to another node.
When that's done, you can start creating functions to work with the list, such as a count or search function.
May 6 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: newtothis | last post by:
Being new to the use of C++ I have written a linked list program. It seems to crash after I delete from the list and then add a new node. Also this is not college homework, I have also looked...
7
by: Joe | last post by:
Hello, I don't know if it's appropriate to ask here. But I am a C++ programmer, I think maybe you can more understand what's my concerning. I see the codes in Java to implement a linked list...
3
by: chellappa | last post by:
hi this is linked list program ,,, this program display in reverse order........... how to correct this error #include <stdio.h> struct list { int value; struct list *next; };
7
by: Indraseena | last post by:
Hi can anybody send me how to create a linked list program in C++. Basically I want to know how a node is handled in c++. I know this in c only. in c we create a structure and use that structure...
1
by: SKP | last post by:
Hi, I am trying do a basic liked list program, where i am adding nodes at the end. Adding part is fine, but removing part is not working. Here is the code: --------- #include<string> class...
14
by: fool | last post by:
Dear group, Thanks for all those who helped previously. Now I get some value printed. Is that the value of the list getting printed? Am I really polluted the list? Previous thread link...
2
by: Suzie | last post by:
I have to write a program that using linked lists, allows the user to finds files,in a given directory,delete files, rename, sort in ascending and descending order according to time created, name of...
1
by: theeverdead | last post by:
Ok I have a file in it is a record of a persons first and last name. Format is like: Trevor Johnson Kevin Smith Allan Harris I need to read that file into program and then turn it into a linked...
6
by: APEJMAN | last post by:
I know what I'm posting here is wired, but it's been 3 days I'm workin g on these codes, but I have no result I post the code here I dont wanne bother you, but if any one of you have time to...
0
by: brankec | last post by:
I'm trying to write C program that reads data from dbf fajl. This is my first program with linked list. When I delete line1 and line2 program works, but then I dont have linked list. And when I use...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.