This site requires JavaScript, please enable it in your browser!
Greenfoot back
DMag
DMag wrote ...

2012/2/19

Class, interface, or enum expected

1
2
DMag DMag

2012/2/19

#
It worked! Thanks guys!
danpost danpost

2012/2/19

#
@Game/maniac, actually 'void' means that the method will not return anything. If it is 'boolean', the method is declared to return a true/false value. If it is 'String', the method is supposed to return a String value (or null). Basically, if the method is declared to return 'void', the method just does stuff and exits. But if it is not void, the method may or may not do some stuff and then, return an object of whatever type the method is declared to return.
You need to login to post a reply.
1
2