Class ConverterMain

Object
ConverterMain

public class ConverterMain extends Object
Main class to run the Coordinate Converter!
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    go(Scanner scnr)
    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.
    static void
    main(String[] args)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConverterMain

      public ConverterMain()
  • Method Details

    • go

      public static void go(Scanner scnr)
      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

      public static void main(String[] args)