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

Untitled

By: a guest on May 2nd, 2012  |  syntax: Java  |  size: 0.35 KB  |  hits: 16  |  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. import java.io.BufferedReader;
  2. import java.util.StringTokenizer;
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6. List newlist=new ArrayList();
  7. StringTokenizer st = new StringTokenizer(list.get(0), "\n");
  8. String nextLine = st.nextToken();
  9. String[] str2 = nextLine.split("[ :]+");
  10. String nextLine2 = str2[1];
  11. newlist.add(nextLine2);
  12. out = nextLine2;