Link

  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Link as PDF for free.

More details

  • Words: 62
  • Pages: 1
package linkedlist; class node { String data; node next; } public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { node first = new node(); node sec = new node(); first.data sec.data = first.next sec.next =

= "one"; "two"; = sec; null;

for(node x = first; x!= null ; x=x.next) System.out.println(x.data); } }

Related Documents

Link
November 2019 73
Link
July 2020 35
Link
October 2019 50
Link
October 2019 50
Link
May 2020 28
Link
November 2019 56