+ 1

How to create a linked list in java??? Plz explain line to line

Node createing??

14th Aug 2018, 3:44 PM
Pirashanthan S
Pirashanthan S - avatar
2 Answers
+ 2
Create a class, e.g. public class LinkedList {...} Each instance of this class would be a node. Define properties for this class - values that every node will store. Then make a variable of the type LinkedList which would be a reference to another node.
14th Aug 2018, 5:52 PM
Steppenwolf
Steppenwolf - avatar
0
Okk thanx
15th Aug 2018, 3:47 AM
Pirashanthan S
Pirashanthan S - avatar