public class Lists
extends java.lang.Object
Title: Class List
Description: In this class implements the structure and methods of a list
Company: KEEL
Modifier and Type | Field and Description |
---|---|
Lists |
child
Child list.
|
int |
index
Current element of the list.
|
Lists |
parent
Parent list.
|
Constructor and Description |
---|
Lists()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Lists |
del(Lists node)
Delete the node NODE from the list
|
void |
insert(Lists node,
int x)
Insert an element X into the list at location specified by NODE
|
public int index
public Lists parent
public Lists child
public void insert(Lists node, int x)
node
- list in which we want introduce an elementx
- element to introduce