MileStone1 Arrays
MileStone1 Arrays
MileStone1 Arrays
Topics
Hands-on Assignment Status
No Covered
Initialize an integer array with ascii values and print the One
4 corresponding character values in a single row. dimensional
Array
8 One
Write a program to print the element of an array that has dimensional
Array
occurred the highest number of times
Eg) Array -> 10,20,10,30,40,100,99
O/P:10
10 Two
Write a program to reverse the elements of a given 2*2 array. Dimensional
Four integer numbers needs to be passed as Command Line Array
arguments.
Example1:
C:\>java Sample 1 2 3
Example2:
C:\>java Sample 1 2 3 4
O/P Expected :
The given array is :
1 2
3 4
The reverse of the array is :
4 3
2 1
1 2 3 4
5 6 7 8
9 10 11 12
C:\>java Sample 1 2 3
Example2:
Two
11 Dimensional
Array
C:\>java Sample 1 23 45 55 121 222 56 77 89
O/P Expected :
The given array is :
1 23 45
55 121 222
56 77 89
The biggest number in the given array is 222