Java exercises and solutions: singly linked list-OOP


Java OOP: singly linked list

Exercise: By using Java objected-oriented concept, create a singly linked list.

The singly linkedlist is a chain of its item. Each item contain two parts--data and pointer. The data part is to store information and the pointer part of an item is used to point or to store the address of the next item.

C single linked list

You are going to build a singly linkedlist that has two pointers--one(pfirst) points to the first item of the list and another one(plast) point to the last item of the list. The program also provides a menu of choices that a user can use do some operations on the linkedlist data structure.

Java linkedlist operations menu  

Solution: To keep the solution simple, we divide it in to different steps as you see their links on the right menu.




Comments

Gourav comment

 Gourav

Want to learn java better


2018-06-07
Shanis comment

 Shanis

http>// this address unlock
But https:// locked
how resolve this problem


2017-07-23
Sodo comment

 Sodo

Thanks you.


2015-02-22



This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.