Advertisement
Guest User

main

a guest
Jan 27th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package Oppg1;
  7.  
  8. /**
  9.  *
  10.  * @author root
  11.  */
  12. public class Runlist {
  13.     public static void main( String[]args ) {
  14.         Heltallsliste liste = new Heltallsliste();
  15.         /*
  16.         liste.addNr(15);
  17.         liste.addNr(5);
  18.         liste.addNr(4);
  19.         liste.addNr(155);
  20.         System.out.print( liste.toString() );
  21.         */
  22.         liste.addFront(1020);
  23.         System.out.print( liste.toString() );
  24.        
  25.         /*
  26.         if( liste.findNode(15555) == null ) {
  27.             System.out.println( "Fant ikke node" );
  28.         }
  29.         else {
  30.             System.out.println( "Fant node" );
  31.         }
  32.         */
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement