|
@@ -32,7 +32,9 @@ public class SciCalculator{
|
32
|
32
|
break;
|
33
|
33
|
case 2:System.out.println("call number system function");//call number system function
|
34
|
34
|
break;
|
35
|
|
- case 3:System.out.println("call memory function");//call memory function
|
|
35
|
+ case 3: Memory memNumber = new Memory();
|
|
36
|
+ memNumber.setMemNum(6);
|
|
37
|
+ System.out.print(memNumber.getMemNum());
|
36
|
38
|
break;
|
37
|
39
|
case 4:System.out.println("call operations function");//call operations function
|
38
|
40
|
break;
|
|
@@ -41,6 +43,8 @@ public class SciCalculator{
|
41
|
43
|
case 6:System.out.println("Goodbye");//clear display
|
42
|
44
|
isOn = false;
|
43
|
45
|
break;
|
|
46
|
+ default:
|
|
47
|
+ break;
|
44
|
48
|
}
|
45
|
49
|
}
|
46
|
50
|
}
|