Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Loop Structure in Java

numbers = new int[10];
numbersResult = "The resulting numbers inside Do While loop are:
";
count = 0;
while (count < 10) {
	numbers[count] = (int) (count*8.87);
	numbersResult += "number " + String.valueOf(numbers[count] + "
");
	count ++;
}
JOptionPane.showMessageDialog(null, numbersResult);
Source by my.uopeople.edu #
 
PREVIOUS NEXT
Tagged: #Loop #Structure #Java
ADD COMMENT
Topic
Name
8+8 =