Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main {
- public static void main(String[] args) {
- SingleLinkedList test = new SingleLinkedList();
- test.prepend(2);
- test.append(3);
- test.append(4);
- test.append(5);
- test.append(6);
- //test.deleteWithValue(4);
- //test.deleteAtIndex(2);
- //System.out.println(test.index(1));
- //System.out.println(test.searchWithValue(7));
- test.insert(1,9);
- test.insert(4,11);
- test.insert(6,13);
- test.display();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement