how to extract data from delimited text file in java

Java
double latitude = Double.parseDouble(tokens[0]);
double longitude = Double.parseDouble(tokens[1]);String[] tokens = str.split(",");
Source

Also in Java: