Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DataItem
- {
- public long dData; // one data item
- //--------------------------------------------------------------
- public DataItem(long dd) // constructor
- { dData = dd; }
- //--------------------------------------------------------------
- // displays data. ie, inserting 27, 36, 32 into node would look like /27/36/32/
- public void displayItem() // display item, format "/27"
- { System.out.print("/"+dData); }
- //--------------------------------------------------------------
- } // end class DataItem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement