Submit Search
Upload
Main linklist
•
0 likes
•
193 views
Irma Yunita
Follow
main linklist.java
Read less
Read more
Report
Share
Report
Share
1 of 1
Download now
Download to read offline
Recommended
Java весна 2013 лекция 7
Java весна 2013 лекция 7
Technopark
xasada
xasada
pepexxxxxxx
Java
Java
Dany Ianko
Groovy: il linguaggio
Groovy: il linguaggio
Francesco Lerro
Letter of Rec - Nick Parker
Letter of Rec - Nick Parker
Samantha Wong
Le web 2014 / Le CES 2015
Le web 2014 / Le CES 2015
Laura Bernard
Examen dhtic
Examen dhtic
Alejandro Romero
BEcertificate
BEcertificate
LIJOY VARGHESE
Recommended
Java весна 2013 лекция 7
Java весна 2013 лекция 7
Technopark
xasada
xasada
pepexxxxxxx
Java
Java
Dany Ianko
Groovy: il linguaggio
Groovy: il linguaggio
Francesco Lerro
Letter of Rec - Nick Parker
Letter of Rec - Nick Parker
Samantha Wong
Le web 2014 / Le CES 2015
Le web 2014 / Le CES 2015
Laura Bernard
Examen dhtic
Examen dhtic
Alejandro Romero
BEcertificate
BEcertificate
LIJOY VARGHESE
7189
7189
ivanov156633595
PR Pratice promote Good Governance in Public Administration
PR Pratice promote Good Governance in Public Administration
NAKENTOH Kenneth
7003
7003
ivanov156633595
Horario
Horario
CastroBatugg
Film
Film
cenghankemal özdemir
Reference Letter
Reference Letter
Michael Conteh
Archivo de prueba
Archivo de prueba
lutga45
Natural Dark Cuticle Hair
Natural Dark Cuticle Hair
Eastern Hair
5K Overall Results - Q C Cubao Lions Club Fun Run 2012
5K Overall Results - Q C Cubao Lions Club Fun Run 2012
Abe Dumlao
Webinar - Rise of the Universal Associate and Self-Service Machines - CFM
Webinar - Rise of the Universal Associate and Self-Service Machines - CFM
Jacqueline Janes
7 Top Corporate Trends for Learning & Development in 2014
7 Top Corporate Trends for Learning & Development in 2014
EpiphanyEdu
Technology rethink for next generation loyalty programmes
Technology rethink for next generation loyalty programmes
Hewlett Packard Enterprise Business Value Exchange
Connecting the manufacturing industry
Connecting the manufacturing industry
Hewlett Packard Enterprise Business Value Exchange
More Related Content
Viewers also liked
7189
7189
ivanov156633595
PR Pratice promote Good Governance in Public Administration
PR Pratice promote Good Governance in Public Administration
NAKENTOH Kenneth
7003
7003
ivanov156633595
Horario
Horario
CastroBatugg
Film
Film
cenghankemal özdemir
Reference Letter
Reference Letter
Michael Conteh
Archivo de prueba
Archivo de prueba
lutga45
Natural Dark Cuticle Hair
Natural Dark Cuticle Hair
Eastern Hair
5K Overall Results - Q C Cubao Lions Club Fun Run 2012
5K Overall Results - Q C Cubao Lions Club Fun Run 2012
Abe Dumlao
Webinar - Rise of the Universal Associate and Self-Service Machines - CFM
Webinar - Rise of the Universal Associate and Self-Service Machines - CFM
Jacqueline Janes
7 Top Corporate Trends for Learning & Development in 2014
7 Top Corporate Trends for Learning & Development in 2014
EpiphanyEdu
Technology rethink for next generation loyalty programmes
Technology rethink for next generation loyalty programmes
Hewlett Packard Enterprise Business Value Exchange
Connecting the manufacturing industry
Connecting the manufacturing industry
Hewlett Packard Enterprise Business Value Exchange
Viewers also liked
(13)
7189
7189
PR Pratice promote Good Governance in Public Administration
PR Pratice promote Good Governance in Public Administration
7003
7003
Horario
Horario
Film
Film
Reference Letter
Reference Letter
Archivo de prueba
Archivo de prueba
Natural Dark Cuticle Hair
Natural Dark Cuticle Hair
5K Overall Results - Q C Cubao Lions Club Fun Run 2012
5K Overall Results - Q C Cubao Lions Club Fun Run 2012
Webinar - Rise of the Universal Associate and Self-Service Machines - CFM
Webinar - Rise of the Universal Associate and Self-Service Machines - CFM
7 Top Corporate Trends for Learning & Development in 2014
7 Top Corporate Trends for Learning & Development in 2014
Technology rethink for next generation loyalty programmes
Technology rethink for next generation loyalty programmes
Connecting the manufacturing industry
Connecting the manufacturing industry
Main linklist
1.
import java.util.Scanner; public class
mainLinkList{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); LinkList ls = new LinkList(); int pilih=0; do{ System.out.println("Menu : "); System.out.println("1. Input awal"); System.out.println("2. Input akhir"); System.out.println("3. Input setelah awal"); System.out.println("4. Input sebelum akhir"); System.out.println("5. Hapus awal"); System.out.println("6. Hapus akhir"); System.out.println("7. Lihat awal"); System.out.println("8. Lihat akhir"); System.out.println("0. Keluar"); System.out.printf("Pilihan anda --> "); pilih=scan.nextInt(); if(pilih==1){ System.out.printf("Input nama : "); String nama = scan.next(); Node n = new Node(nama); ls.addFirst(n); } else if(pilih==2){ System.out.printf("Input nama : "); String nama = scan.next(); Node n = new Node(nama); ls.addLast(n); } else if(pilih==3){ System.out.printf("Input nama : "); String nama = scan.next(); Node n = new Node(nama); ls.addAfterFirst(n); } else if(pilih==4){ System.out.printf("Input nama : "); String nama = scan.next(); Node n = new Node(nama); ls.addBeforeLast(n); } else if(pilih==5){ ls.removeFirst(); } else if(pilih==6){ ls.removeLast(); } else if(pilih==7){ Node n = ls.getFirst(); System.out.println(n.getData()); } else if(pilih==8){ Node n = ls.getLast(); System.out.println(n.getData()); } } while(pilih!=0); } }
Download now