while(( line=readTxt.readLine())!=null) { String[] num=textLine.split(" "); for(int i = 0;i System.out.println(Integer.parseInt(num[i]));}