0

Java Array. Help me

I am learning java. a conpany'staff. inYearArr[16,18,23,33] (inYear 2016 is 16 in Array) outYearArr[66,28,23,66] (out year 2066 is 66 in array) how to find the years that the staff is most? output is Arr[3,23] with 3 is the most staff in 23 year (2023). sorry my bad enlish.

29th May 2019, 11:20 AM
Đỗ Minh Tùng
Đỗ Minh Tùng - avatar
3 Antworten
+ 4
I don't understand what you need. inYear [16,18,23,33] The numbers inside represents the year? 2016, 2018, 2023, 2033? And same for outYear? From where do you get the information about the staff?
29th May 2019, 1:22 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
But how to you combine the years with the staff? Do you store them in another array? I don't understand from where Arr[3,23] came.
30th May 2019, 10:46 AM
Denise Roßberg
Denise Roßberg - avatar
0
Yes the same for out year. Information from keyboard.
30th May 2019, 12:11 AM
Đỗ Minh Tùng
Đỗ Minh Tùng - avatar