I was given the following problem in class today.
Print (show result) of the following arrays:
int[ ] a = {2,4,7,10};
int[ ] b = Arrays.fill(a,7);
int[ ] c = Arrays.fill(a,1,3,8);
When i punch these lines of code into NetBeans, I get the following error:
"incompatible types - required: int[] - found: void"
Any ideas on what is not working correctly?