Answer the question
In order to leave comments, you need to log in
The string is not broken into characters Array type expected found javalangString What to do?
Answer the question
In order to leave comments, you need to log in
Characters in a string cannot be accessed via []
. If you need to get an array of characters from a string, use toCharArray()
.
Here's what you need to do:
1. Style the code with text using the appropriate tag.
2. Read a book about java - this is an elementary question.
3. Use the contains method to check the occurrence of one string in another. For example:Boolean isContains = addEmail.contains("@")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question