Thanks, I'll have to dig in further.
Type: Posts; User: gwb
Thanks, I'll have to dig in further.
The first line of the arraylist should be -180.0,-66.00, and the last line should be 180.0,-66.00, to agree with the information extracted from the input file.
At this point I don't want to print...
As requested, here is the code to extract a portion of a text file. It however, on the first and last lines of the extracted text, returns 0.0 instead of -180.0 and 180.0
package test;
...
OK, I have got this working for the most part, however instead of capturing the -180.0 and 180.0 portions of the first and last lines in the range to the arraylist, it prints zero values for these...
I have a text file where I need to search and extract a portion of it (sample file attached). This is a little more complicated than most examples I have seen e.g. using the scanner class. This file...