Skip to content
Snippets Groups Projects
switch.java 352 B
Newer Older
  • Learn to ignore specific revisions
  • public class Switch {
    
        public static void foo()
    
    koen's avatar
    koen committed
        {
            int x, y;
            
            y = 0;
            
            switch (y) 
            {
                case 0:  x = 0;
                case 1:  x = 1;
                        break;
                case 2:  x = 2;
                         break;
                default: x = 2;
                         break;
            }
    
        }
    }