Chapter

Void Methods

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. 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

  2. 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

Void Methods | ComputerScienceOne | Bifalgorithm | Bifalgorithm