public class InsertPlease {
public static void main(String args[]) {
/* Insert Code Here */
}
void add() {
int x, y, z;
x = y = 5;
System.out.print("Sum = ");
System.out.println(z = x + y);
}
}
Insert code to the above program to get output as -
Sum = 10
1. try {
new InsertPlease().add();
} catch (Error e) {
System.out.println(e);
}
2. new InsertPlease().add();