1 package jrre.unittests;
2
3
4 public class LoopsAndBranches {
5
6 public static void print(int toPrint){
7
8 jrre.api.java.lang.System.out.println(toPrint);
9 }
10
11 public void forLoop(){
12
13 for(int i=0;i < 5;i++)
14 print(i);
15 }
16
17 public void whileLoop(){
18
19 int count = 0;
20 while(count < 10)
21 print(count++);
22 }
23
24 public void test(){
25
26 forLoop();
27 whileLoop();
28 }
29
30 public static void main(String [] args){
31
32 LoopsAndBranches loops = new LoopsAndBranches();
33 loops.test();
34 }
35 }
This page was automatically generated by Maven