Class ConverterMain
Object
ConverterMain
Main class to run the Coordinate Converter!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis methods prints helpful welcome info, then has the user enter a decimal or DMS coordinate, or an "X" to exit! Depending upon the input, the DMS or decimal coordinate is converted and then printed to the terminal.static void
-
Constructor Details
-
ConverterMain
public ConverterMain()
-
-
Method Details
-
go
This methods prints helpful welcome info, then has the user enter a decimal or DMS coordinate, or an "X" to exit! Depending upon the input, the DMS or decimal coordinate is converted and then printed to the terminal.Notice the use of String.contains() to determine what the user input it.
- Parameters:
scnr- Scanner object provided by the main method.
-
main
-