char vars may inserted as method parameters ?
int setAAA (int varAAA) {...} the first int in a setter is error ?
void is required whereas we have no return data ?
char vars may compared with == or need...?
constructors may output text ? but no return data ?
why does not compile the below:
Code:class Test2 { public static void main(String[] args) { char grade = 'A'; int process(char grade) { int points = (grade == 'A' ? 4 : 3); return points; } System.out.println(process(grade)); } }
Bookmarks