1.

Anyone knows one-dimensional array in Java Create a program using a one-dimensional array that will group numbers in an array following the given groupings provided below: Range Group 01-10 1 11-20 2 and so on... There will be 10 values as interval. Your program will only terminate once the input is 0 and below and above the highest range of 100. Sample Run: Enter an integer number: 22 22 belongs to Group 3 Enter an integer number: 5 5 belongs to Group 1 Enter an integer number: 0 Goodbye

Answer»

We can REFERENCE all the elements in a ONE-dimension array using an indexed loop. The counter runs from 0 to the maximum array SIZE, say n, minus one. All elements of the one-dimension array are referenced in sequence by using the loop counter as the array subscript.Explanation:I HOPE it will be helpful for you...



Discussion

No Comment Found