0
At first you should store your data in the text file.And write this code. FileReader fr = null; fr = new FileReader("Your File location"); BufferedReader br = new BufferedReader(fr); itemsFound = new ArrayList(); Int data = null; data = br.readLine(); Int[] arr = data; int i; for(i=0,i<arr.length,i++){ System.out.println(arr[i]); } Now You have your data in an Array of Integer. I use Buffer Reader method. Your Data are int an Array "arr".
29th May 2017, 1:24 AM
Kyaw Phyo Aung
Kyaw Phyo Aung - avatar