|
@@ -5,13 +5,21 @@
|
5
|
5
|
*/
|
6
|
6
|
public class MainApplication {
|
7
|
7
|
public static void main(String[] args) {
|
|
8
|
+
|
|
9
|
+ double Display = 0;
|
|
10
|
+ int num_system = 1;
|
|
11
|
+ double memory = 0;
|
|
12
|
+
|
8
|
13
|
Console.println("Welcome to my calculator!");
|
|
14
|
+ Console.println("Choose your option : ");
|
|
15
|
+
|
9
|
16
|
String s = Console.getStringInput("Enter a string");
|
|
17
|
+
|
|
18
|
+ while (s != "quit") {
|
|
19
|
+
|
10
|
20
|
Integer i = Console.getIntegerInput("Enter an integer");
|
11
|
21
|
Double d = Console.getDoubleInput("Enter a double.");
|
|
22
|
+ }
|
12
|
23
|
|
13
|
|
- Console.println("The user input %s as a string", s);
|
14
|
|
- Console.println("The user input %s as a integer", i);
|
15
|
|
- Console.println("The user input %s as a d", d);
|
16
|
24
|
}
|
17
|
25
|
}
|