Computer Science, asked by Sandeepkumar752903, 2 months ago

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 Falcon06
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