package loopAndFlow; public class WhileLoopExamples { public static void main(String[] args) { int count = 0; // While is used when it is not clear how many times loop has to be // executed. while (count