0
FIND THE ERROR IN THIS PROGRAM..
class program{ public static void main(string[] args) { int x=max(7, 8); System.out.println(x); } static int max(int a, int b) { if(a>b) { return a; } else { return b; } } }
2 Answers
+ 5
public static void main(String[] args)
'string' is not recognized as type, it should be 'String' ...
+ 2
Hello Udhay Shankar.D
Your code should work.
Which error message to you get?