How do you call a void method in Java?

Alvin Le

Member
How do you call a void method in Java?
Answer
The void Keyword
Call to a void method must be a statement i.e. methodRankPoints(255.7);. It is a Java statement which ends with a semicolon as shown in the following example.
 

Tìm kiếm

Back
Top