Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String args[])
- {
- char digit = 'a';
- for (int i = 0; i < 10; i++)
- {
- switch (digit)
- {
- case 'x' :
- {
- int j = 0;
- System.out.println(j);
- }
- default :
- {
- int j = 100;
- System.out.println(j);
- }
- }
- }
- int i = j;
- System.out.println(i);
- }
Advertisement
Add Comment
Please, Sign In to add comment