- Reverse a String 1
- Reverse Each Word
- Reverse a Sentence
- Palindrome
- Find Words
- CountIng Search
- Unique Characters
-
Java Sandwich - Anagrams 1
- Anagrams 2
- Counting Search 2
Java String Resources:
Anagrams 2
Premium Content - Free Preview
Semi-anagrams are anagrams where you drop some letters in one word and then re-arrange the remaining letters to get the other word. This means all the letters of one word can be found in the other word, but not necessarily vice versa.
End of Free Content Preview. Please Sign in or Sign up to buy premium content.
Comments
thales
Aug 2, 7:12 AMPlease, a little more help?
thales
Aug 2, 10:33 AMPlease can i just get the awnser even on stack they cant seem to figure it out?
Learneroo
Aug 2, 11:15 AMIt's a little easier to solve this challenge if you used the "counting solution" for the last problem. If you sorted, you can adjust your algorithm to go through the letters comparing them...
thales
Aug 2, 11:52 AMCheck my solution please. it is the right solution. In Eclips al the ouput is like it should be, but here it gives two errors?
carthorse orchestra: should give true in eclips it does!!
Here when i run my code it gives false. i had this problem earlier , but the code is really correct?
Learneroo
Aug 2, 12:38 PMBe careful when using Java's
containsAll
since it doesn't check the number of times an item appears.thales
Aug 2, 12:52 PMI know, thats why i have the third list. I compare it to a third list. please check this.
It works on eclipse for me in all examples. i use a third list and check the containsAll but also the length.. So that is not the problem.
Learneroo
Aug 5, 11:16 AMTurns out it's a difference between Java 7 (running on this site) and Java 8. See StackOverflow for more details.