18. Add another class (given below) in the same program.
public class Two {
public static void display() {
System.out.println (“Hi There !!");
System.out.println (“I am in class Two”);
}
Answers
Answered by
6
Answer:
public class Two {
public static void display() {
System.out.println (“Hi There !!");
System.out.println (“I am in class Two”);
}
class AnotherClass{
public static void nothing(){
System.out.println (“Nothing !!");
}
}
Similar questions