public class Tester{ public static void main(String[] args){ IntKomvos node1 = new IntKomvos(7); IntKomvos node2 = new IntKomvos(13); IntKomvos node3 = new IntKomvos(17); IntKomvos node0 = new IntKomvos(-3, node1); System.out.println("Data : " + node0.strShow() + ", " + node1.strShow() + ", " + node2.strShow() + ", " + node3.strShow()); node1.setNext(node2); node2.setNext(node3); IntKomvos buf = node0; while(buf != null){ buf.show(); buf = buf.getNext(); } } }