this statement shows this error: method contains in class String cannot be applied to given types;
boolean m=str[j].contains(a);
why this happens and what is the remedy.It would be great if someone helps.. thank you..
Without the code that surrounds this statement it will be difficult to tell exactly what's wrong. But from that one line, my guess is that either the variable a is not of type char or str is not a string but rather a char as well. Post more code and maybe we can help more thoroughly
UPDATE: The variable that is sent in to the 'contains' function must be of type CharSequence according to the Java Docs.
http://docs.oracle.com/javase/7/docs/api/java/lang/String.html
http://docs.oracle.com/javase/7/docs/api/java/lang/CharSequence.html
str[j]- jmja? - rgettmanais not instanceofCharSequence. - Eran