I want to divide the input I get from the user in different num sections in java. And then as output there have to come how many numbers are in each section. E.g. 1 1 2 3 4 4 5 6 7 8 9 10 11 12
- in section (0 - 3) there are 4 numbers
- in section (4 - 6) there are 4 numbers
- in section (7 - 9) there are 3 numbers
- and in section (10 - 12) there are 3 numbers
I have no idea how to manage this.