Title: Use for loop statements.
Course: Java Programming (Oracle) (10055) > Section: Controlling Program Flow

Using the full form of the for loop statement is detailed as follows:

9 for (int i=0; i<arr.length; i++)
10 {
11 arr[i] = lower++;
12 }
13 return arr;
14 }
15 public static void main (String args[])throws Exception
16 {
17 InputStreamReader reader =new InputStreamReader(System.in);
18
19 BufferedReader  input=new BufferedReader(reader);
20
21 System.out.println("Please enter a number");
22
23 String letters= input.readLine();
24
25 int numbers =Integer.parseInt(letters);
26
27 System.out.println("Please enter the upper number");
28
29 String moreInput =input.readLine();
30
31 int moreNumbers=Integer.parseInt(moreInput);
32
33 int theArray[];
34
35 KeyBoardInput  theRange=new KeyBoardInput();
36
37 theArray = theRange.minMax(numbers, moreNumbers);
38
39 System.out.print("The array:[ ");
40 for(int i=0;i<theArray.length;i++)