+ 3
Can anyone help me?
we had an assignment about "how to declare a method in java" can anyone help me about it tnx in advance
9 Answers
+ 6
public void makeTea(){}
+ 4
What's wrong?
+ 3
:'(
+ 3
yep thats how i would declare a method exactly like this
public static int method(int i, int j){
//Statments;
return i j ;}
/*
Method is accessible to all classes "public"
Method does not need an instance "Static"
Method return type "interger"
Method returns
*/
+ 2
cant find it on the internet đ really needed the step by step. :(
+ 2
public static int method(int i, int j){//Do Somthing} ?
+ 2
definitely @D_Stark