I have a set of values in a text file
1529666255304 123456789 128.158.234.15 1529666289305 123456799 123.148.214.19 ...... they are all String
how to write to the array only the first values of t e
1529666255304 1529666289305 ..... that's what i got
String [] mass; try { BufferedReader br= new BufferedReader(new FileReader("C:file.txt")); String sCurrentLine; while ((sCurrentLine = br.readLine()) != null) { mass = sCurrentLine.trim().split("\\s+"); } } catch (IOException e) { e.printStackTrace(); }