Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- final int STAGE_1 = 0;
- final int STAGE_2 = 1;
- final int STAGE_3 = 2;
- int counter = 0;
- while(counter < 3 * 100) {
- switch(counter % 3) {
- case STAGE_1:{
- System.out.println("Current bunch: " + (int) (counter / 3 + 1));
- System.out.println("Stage 1");
- break;
- }
- case STAGE_2: {
- System.out.println("Stage 2");
- break;
- }
- case STAGE_3: {
- System.out.println("Stage 3");
- break;
- }
- }
- counter++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement