- Joined
- Jun 30, 2008
- Messages
- 1,145 (0.20/day)
- Location
- England
System Name | Wasleys PC |
---|---|
Processor | Intel i5 2400 3.10GHz |
Motherboard | Asus P8z68-V |
Cooling | AC Freezer Pro |
Memory | Kingston 4GB (2x2GB) DDR3 Hyperx Memory |
Video Card(s) | HIS ATi 6850 1GB DDR3 |
Storage | Seagate ST3500320AS 500GB Hard Drive SATA II 7200rpm *32MB Cache* |
Case | Antec 900 with mods |
Audio Device(s) | On Board |
Power Supply | OCZ Stealth Xtream 500W |
Software | Windows 7 |
Hi all,
I've created a program to split a string which contains latitude coordinates.
For arguments sake, here is a latitude string: 52°97'0.6822"
The program above will only do up to 97. I was thinking of using a loop, but unsure how to go about doing it.
Any input would be helpful.
Cheers
I've created a program to split a string which contains latitude coordinates.
Code:
String[] temp;
String delimiter = "°";
temp = MetaData.latitude.split(delimiter);
for (int i = 0; i < temp.length; i++) {
System.out.println(temp[i]);
}
For arguments sake, here is a latitude string: 52°97'0.6822"
The program above will only do up to 97. I was thinking of using a loop, but unsure how to go about doing it.
Any input would be helpful.
Cheers