WhileLoop.java |
package lectures.loops; import util.annotations.WebDocuments; @WebDocuments({"Lectures/Loops.pptx", "Lectures/Loops.pdf", "Videos/Loops.avi"}) public class WhileLoop { public static void printHello(int n) { int counter = 0; while (counter < n) { counter = counter + 1; System.out.println ("hello"); } } }