This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ch5; | |
| //A simple example of the switch. | |
| public class SampleSwitch { | |
| public static void main(String[] args) { | |
| // TODO Auto-generated method stub | |
| for(int i=0; i<6; i++) | |
| switch(i) { | |
| case 0: | |
| System.out.println("i is zero."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| */ | |
| package practice; | |
| import java.io.*; | |
| /** | |
| * @author Administrator | |
| * |
NewerOlder