Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So I want to make a class call employee to contains the name and salary. But I'm not sure how to put those into the nodes. I wouldn't want to make node class from scratch... Could you guys point out some tips?
Posted
Updated 17-Jul-14 22:00pm
v2
Comments
RozenKristal 31-Jul-14 11:24am    
Oh, I didn't really ask for code or anything... Just confused a bit while practicing it cause I have never used Java's library Abstract structures before... Thank I got it

Start here:

http://docs.oracle.com/javase/tutorial/java/index.html[^]

I recommend to bookmark that page.

For the code:
Please code yourself, this is classic homework, which we do not provide.
You can ask specific, but we will not give you code.
 
Share this answer
 
Typically, a linked list node is a class containing
  • some data (e.g. employee 'name' and 'salary', in your case)

as well
  • a reference to the next node in the list
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900