Java Tutorial #13 — More loops! Sentinel and break;

Topics Discussed: More loop practice, sentinel / dummy record loops, breaking out of loops Source Code for Lesson 13: import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(; int i=0, j=0; //Dummy record / sentinel controlled loop. while (i < 100){ j = i*5; System.out.println("The value of i is:"... » read more