-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputTest.java
More file actions
28 lines (21 loc) · 958 Bytes
/
Copy pathInputTest.java
File metadata and controls
28 lines (21 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package util;
import java.util.Scanner;
public class InputTest {
public static void main(String[] args) {
Input input = new Input();
// System.out.println("please enter a string:");
// String userString = input.getString();
// System.out.println(userString);
// System.out.println("please enter a value to test for true/false:");
// Boolean userBoolean = input.yesNo();
// System.out.println(userBoolean);
System.out.println(input.getInt("Enter an integer:"));
// System.out.println(input.getInt(1, 10, "hello"));
// System.out.println("please enter a value to test if entry is valid integer:");
// input.getInt();
System.out.println(input.getDouble("Enter a floating number (number with decimals):"));
// System.out.println(input.getDouble(1.0, 50.0));
System.out.println(input.getBinary());
System.out.println(input.getHex());
}
}