Need solution | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Need solution

Showing some errors! What is the solution? Full code⤵️ https://code.sololearn.com/cK4C7rhF7Dmo/?ref=app

23rd Nov 2022, 7:03 AM
Mustakim Rahman
Mustakim Rahman - avatar
2 Answers
+ 1
contains() method is another class myclass method..and it is static method so call it with class name reference System.out.println(myclass.contains(array, 2015)); System.out.println(myclass.contains(array, 2010));
23rd Nov 2022, 8:41 AM
Jayakrishna 🇮🇳
+ 1
Thanks❣️
24th Nov 2022, 3:26 AM
Mustakim Rahman
Mustakim Rahman - avatar