Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public String toString()
  2.   {
  3.       String awesome = "[";
  4.       ListNode current = first;
  5.       if(getFront() == null)
  6.       {
  7.           String temp = "[]";
  8.           return temp;
  9.         }
  10.         else
  11.         {
  12.             awesome += current.getValue();
  13.             while(current.getNext()!=null)
  14.             {
  15.                 awesome += current.getValue();
  16.         }
  17.         new += "]";
  18.     }
  19.        
  20.       return awesome;
  21.   }