×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Vasilii Vasilev
Added: May 2, 2014 9:56 AM
Views: 8
double case
  1.   char yesNo = 'y';
  2.        
  3.         switch(yesNo){
  4.             case 'n': case 'N':
  5.                 System.out.println("NO selected");
  6.                 break;
  7.             case 'y': case 'Y':
  8.                 System.out.println("YES selected");
  9.                 break;
  10.         }