Hello
Out of interest, when programming in java, would it be more economical to use an if statement or a switch statement for something that could only have two results.
For example:
char c = 'a';
if (c == 'a') {
//do something
}
else if (c == 'A') {
//do something else
}
or
char c = 'a';
switch (c) {
case 'a':
//do something
break;
case 'A':
//do something else
break;
}
Which would be better?