all,I\'m now facing the problem of no idea on storing the content in text file into the array. The situation is like, text file content:
abc1 xyz2 rxy3
Try this:
String[] arr = new String[3];// if size is fixed otherwise use ArrayList. int i=0; while((str = in.readLine()) != null) arr[i++] = str; System.out.println(Arrays.toString(arr));