All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
final String str = "100";
final String obj = "100";
public int m3(String a, int b){
String val = "100";
Integer iv = 100;
int i = 100;
switch(a){
case XXXX : return 1;
}
return 0; }
What can replace XXXX to make the code compile?
"100" and str both are Strings and are compile time constants and are thus valid.