Hi guys.
First of all, Im a new beginner in Java programming. Anyone can help me regarding this problem?
An array nums stores the following values in the range of 1-5:
Write a Java program to store the above values in the array. Then, the following output will be produced by the program. Your program must use loop and selection structure such as if-else.
1: 0
2: 1
3: 2
4: 3
5: 1
[Explanation about the output: There are no 1's in the array nums, there is one 2, there are two 3's, there are three 4's, and there is one 5]
Please help me and your fast help really means a lot