Advertisement
Guest User

DataItem

a guest
Jul 28th, 2014
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. class DataItem
  2. {
  3. public long dData; // one data item
  4. //--------------------------------------------------------------
  5. public DataItem(long dd) // constructor
  6. { dData = dd; }
  7. //--------------------------------------------------------------
  8. // displays data. ie, inserting 27, 36, 32 into node would look like /27/36/32/
  9. public void displayItem() // display item, format "/27"
  10. { System.out.print("/"+dData); }
  11. //--------------------------------------------------------------
  12. } // end class DataItem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement