Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package Oppg1;
- /**
- *
- * @author root
- */
- public class Runlist {
- public static void main( String[]args ) {
- Heltallsliste liste = new Heltallsliste();
- /*
- liste.addNr(15);
- liste.addNr(5);
- liste.addNr(4);
- liste.addNr(155);
- System.out.print( liste.toString() );
- */
- liste.addFront(1020);
- System.out.print( liste.toString() );
- /*
- if( liste.findNode(15555) == null ) {
- System.out.println( "Fant ikke node" );
- }
- else {
- System.out.println( "Fant node" );
- }
- */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement