View Single Post
  #4 (permalink)  
Old 03-23-2008, 11:29 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Code:
private static void print(String[] data) { for(int i = 0; i < data.length; i++) { String line = data[i]; String[] words = line.split("\\s"); for(int j = 0; j < words.length; j++) { System.out.print(words[j]); if(j < words.length-1) System.out.print(", "); else System.out.println(); } } } }
Reply With Quote