123456789101112131415161718192021222324252627282930313233343536373839 |
-
-
- import java.util.Scanner;
-
- /**
- * Created by leon on 2/9/18.
- */
- public class Console {
- Double userInput;
-
- public Console(){
- userInput=5.0;
- }
-
- public static void print(String output, Object... args) {
- System.out.printf(output, args);
- }
-
- public static void println(String output, Object... args) {
- print(output + "\n", args);
- }
-
- public static String getStringInput() {
- Scanner scanner = new Scanner(System.in);
- String userInput = scanner.nextLine();
- return userInput;
- }
-
- public static Integer getIntegerInput() {
- return null;
- }
-
- public static Double getDoubleInput() {
- Scanner scanner = new Scanner(System.in);
- Double userInput = Double.parseDouble(scanner.nextLine());
- return userInput;
- }
- }
|