We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Solution.java:59: error: cannot find symbol
op = ob.isOdd();
^
symbol: method isOdd()
location: variable ob of type MyMath
Solution.java:63: error: cannot find symbol
op = ob.isPrime();
^
symbol: method isPrime()
location: variable ob of type MyMath
Solution.java:67: error: cannot find symbol
op = ob.isPalindrome();
^
symbol: method isPalindrome()
location: variable ob of type MyMath
3 errors
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Lambda Expressions
You are viewing a single comment's thread. Return to all comments →
Solution.java:59: error: cannot find symbol op = ob.isOdd(); ^ symbol: method isOdd() location: variable ob of type MyMath Solution.java:63: error: cannot find symbol op = ob.isPrime(); ^ symbol: method isPrime() location: variable ob of type MyMath Solution.java:67: error: cannot find symbol op = ob.isPalindrome(); ^ symbol: method isPalindrome() location: variable ob of type MyMath 3 errors