read only double input from text file
i have some problems regarding reading the double input and ignore the integer input..
i am writing a progran that can read the input fron a file which contains number like this:
1 1 3.0376 0.0273 3.8290
1 2 4.0762 3.7267 4.7282
2 1 5.2373 3.2828 4.2728
and i would like to read only the double value and ignore the integer at the first two row in the file.
i currently used inpfile.hasNextDouble() but the reader just read all the number in input file as a double..
anyone got some idea or tips please..??