MainApplication.java 547B

123456789101112131415161718
  1. /**
  2. * Created by leon on 2/9/18.
  3. */
  4. public class MainApplication {
  5. public static void main(String[] args) {
  6. Console.println("Welcome to my calculator!");
  7. String s = Console.getStringInput("Enter a string");
  8. Integer i = Console.getIntegerInput("Enter an integer");
  9. Double d = Console.getDoubleInput("Enter a double.");
  10. Console.println("The user input %s as a string", s);
  11. Console.println("The user input %s as a integer", i);
  12. Console.println("The user input %s as a d", d);
  13. }
  14. }