Hi
I'm using the same method for user input. So I have the same method for reading an int and to read in values to a int[] - array. I get a error saying can't convert type int to int[]. I can't use any other method I have to use the same method for collecting data for both the int and the array. Is there any way to solve this.
Greatfull for the help.
Loading
Akkiraju IvaturiPosted Sep 17, 2012, 3:37 PM
Let us know if you have any questions.
VulpesPosted Sep 17, 2012, 3:36 PM
int[] salaries = new int[count];
which should be:
int[] salaries = new int[count + 1];
FrohikkiPosted Sep 17, 2012, 2:38 PM
Akkiraju IvaturiPosted Sep 16, 2012, 10:53 PM
VulpesPosted Sep 16, 2012, 7:19 PM