public class Coffee {
public void simpleMessage() {
System.out.println("This is another class");
}
}
public class apples{
public static void main(String args[]) {
Coffee CoffeeObject = new Coffee();
CoffeeObject.simpleMessage();
}}
object name and method name
Comments
Post a Comment