What is the method called?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at University of Oxford, Lives in Oxford, UK
The values that they return are displayed on the right, int and void. Because the print_text method is a void method, you don't need to set up a return value. All you need is the name of your object, a dot, and the void method you want to call. Java will then just get on with executing the code inside of your method.
2023-05-09 14:09:52
评论(499)
Helpful(122)
Helpful
Helpful(2)

Oliver Brown
QuesHub.com delivers expert answers and knowledge to you.
The values that they return are displayed on the right, int and void. Because the print_text method is a void method, you don't need to set up a return value. All you need is the name of your object, a dot, and the void method you want to call. Java will then just get on with executing the code inside of your method.