D
Daniel Wang
How do I invoke a method on a class that does not have any parameters and
returns void?
For example, how to invoke this method?
public void printHello()
{
System.out.println( "Hello!" );
}
Thanks in advance.
returns void?
For example, how to invoke this method?
public void printHello()
{
System.out.println( "Hello!" );
}
Thanks in advance.