deepika deepi wrote:I am not sure how to use this.... How to display both during run time?
You should see two .class files generated after you compile this
Java file. Since both the classes have a main method, you can use the
java command to run them. Note that you need to specify the class name after the
java command to run the corresponding class.