+ 2

Could anyone please explain me my mistake at function call In driver code....?

https://code.sololearn.com/cM03BaAe12dm/?ref=app

13th Oct 2022, 4:34 PM
Hemasri Kottapalli
Hemasri Kottapalli - avatar
2 ответов
+ 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];
13th Oct 2022, 4:42 PM
Jayakrishna 🇮🇳
+ 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
13th Oct 2022, 5:13 PM
Will Motio
Will Motio - avatar