+ 2
Could anyone please explain me my mistake at function call In driver code....?
2 Respuestas
+ 1
Your calling method is in another class. So need to call thorough class Or object.
Solution res = Solution.findMaxMin(arr,n);
And for compatible types use int array..
int[] arr = new int[n];
+ 1
check this.
https://www.sololearn.com/compiler-playground/cO4pmHsgs0sB
I don't know what the exercise is about. But you can see if you can get inspired by my correction