Concept

What is a void method in Java?

ComputerScienceOne / Void Methods

"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 return statement.\n\npublic static void printCopyright()\n\nSystem.out.println(\"(c) Bourke 2015\");\n\nreturn;\n\n}\n\nIn the example above, we’ve also illustrated how to define a method that has no input parameters."

Related Ideas

What is a void method in Java? | ComputerScienceOne | Bifalgorithm | Bifalgorithm