We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48c2755 commit 24530f4Copy full SHA for 24530f4
src/simplejavacalculator/SimpleJavaCalculator.java
@@ -17,10 +17,15 @@
17
package simplejavacalculator;
18
19
public class SimpleJavaCalculator {
20
-
21
- public static void main(String[] args) {
22
- UI uiCal = new UI();
23
- uiCal.init();
24
- }
25
+
+ public static void main(String[] args) {
+ try {
+ UI uiCal = new UI();
+ uiCal.init();
+ }
26
+ catch (Exception e) {
27
+ System.out.println(e.getMessage());
28
29
30
31
}
0 commit comments