- Reverse a String 1
- Reverse Each Word
- Reverse a Sentence
- Find Words
- CountIng Search
- Unique Characters
- Anagrams 1
- Anagrams 2
- Counting Search 2
Java String Resources:
Premium Content - Free Preview
Time for some more challenging problems!
A "Java Sandwich" is a String that contains the word "Java" near the middle of it. "Near" means that the number of characters to the right and left differ by at most 2 characters.
End of Free Content Preview. Please Sign in or Sign up to buy premium content.
thalesJul 23, 10:08 AM
Uhm a space is not a character right?
LearnerooJul 23, 10:15 AM
It shouldn't make a difference in this challenge, but a space is a character just like any other.
thalesJul 23, 10:21 AM
it does matter since i have to count them in, right.
LearnerooJul 23, 10:44 AM
Yes that's correct, you need to count the spaces. (I thought there were the same number of spaces on each side, but I see that's not the case.)
thalesJul 23, 11:26 AM
I solved it, but i stil get wrong output one 1 item. The fault is not my code this thime! check it.
for 12Java12345 i get true and i thould be false. When i run it in eclips it gives false ( so its not my code).
what is going wrong?