Hi everyone!, I know this a forum dedicated to a C coding, but i really need some help with my java... I'm a really big newb at java. You will probably laugh at me, but I really want to understand why my small mini program isn't working.
It keeps telling me that a static can't go into a non-static method, and I don't really understand that and I just don't know anymore.. :'(. Anyways, any help will be greatly appreciated.Code:public class random { //main itself public static void main(String[] args) { int x=6, hold, hold2; ; hold = tenten(x); hold2 = evenOrNot(x); System.out.println("METHOD #4: "+hold); System.out.println("METHOD #5: "+hold2); } //4th method public int tenten(int x) { int sum, result; sum = (1+2+3+4+5+6+7+8+9+10); result = sum * x; return result; } //5th method public boolean evenOrNot(int x) { if((x % 2) == 0) { return true; } else { return false; } } }