Chapter
Void Methods
From ComputerScienceOne by Dr Chris Bourke
Concepts
- What is a void method in Java?
"The keyword void can be used in Java to indicate a method does not return a value, in which case it is called a “void method.” Though it is not necessary, it is still good practice to include a retur
- How do you use methods defined in another Java class?
"Once a method has been defined in a class, you can make use of the method as follows. First, you may need to import the class itself depending on where it is. For example, suppose that the examples w