/* * A very simple use of a while loop to print the numbers 1..5 * * Created: August 2023 * @author gtowell */ public class While1 { public static void main(String[] args) { int i = 1; while (i < 5) { i++; System.out.println(i); } } }