Have a go at using the examples to call method1, let me know how you go :)
Type: Posts; User: Tsarin
Have a go at using the examples to call method1, let me know how you go :)
You use the method name, followed by parenthesis "()". You put arguments in the brackets, separated by a comma.
A method is made up of several parts, lets look at:
public void...
You us the method name and argument pattern to refer to it, e.g:
public static void main(String[] args){
//Will work
someMethod("Hello World");