Skip Search Forums Search ForumsAdministrationRandom Glossary EntrymethodA method is a group of programming statements inside a convenient name:private void printThis() { System.out.println("Hello world"); }System.out.println("My name is Thomas"); The method header has the form: <scope specifier> <return type> <identifier>( <parameter list> ) The scope specifier tells us where the method can be called from - if it is private only from this class, if public then from any class. The return type is used when the method returns a value (such as int, double, String etc) otherwise it is void. The identifier is the name you give to the method. The parameter list is empty or a list of data items the method uses to perform irs functions (see parameter). Course categories | Weekly outline
| Skip Online Users Online Users(last 5 minutes) None My Favourite Java Books
| |||||||||||||||||||||||||||||||||||||||||||||




