it gives an error when i call it in the main method,
did i declared everything correctly?
Originally posted by aymane chetibi:
no this is not correct either.
you have to pass to it the actual values:
but are you testing the code?
because the program compiles now, but when its running its does not do what the method should do; it's like the method its not even there.
it's giving me this error.
cannot resolve symbol: indexOf method.
why is this happening?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton