1 class Hello{
2 public void showNumber() {
3
System.out.println(10);
4
return;
5 }
6 }
7
8 class Mettl{
9
public static void main(String as[]) {
Hello h =new Hello();
11
h.showNumber();
12
}
13 }
Answers
Answered by
8
Answer:
correct program is attached above
Attachments:
Answered by
1
CORRECT PROGRAM CODE:
Program Input,
class Hello{
public void showNumber() {
System.out.println(10);
}
public static void main(String as[]) {
Hello h =new Hello();
h.showNumber();
}
}
OUTPUT: 10
#SPJ2
Similar questions