I've looked online and in my textbook, but can't find any explanations for what "wildcards" do in controlling expression parentheses. I have the following code:
I can't figure out what the "%" does in my switch controlling expression. Can anyone please provide me with a list of wildcard characters that are recognized in Java switches, and their uses?
Thanks.
Code:
1 switch ( value % 2 )
2 {
3 case 0:
4 outputJTextField.setText( "Even Integer" );
5
6 case 1:
7 outputJTextField.setText( "Odd Integer" );
8 break;
9
10 } // end switch
Thanks.
Comment