Home > Q&A > body text
巴扎黑2017-04-18 10:52:49
penguin.setHealth(input.nextInt())
PHP中文网2017-04-18 10:52:49
The set method is a return value of void type. The penguin.setHealth() method will not return a field. How can it perform an assignment operation?