Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Post your code following these instructions: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#how-do-i-post-to-a-kata-discourse
It should appear in the Output panel, what are you doing to print the input?
https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#print-input
Your solution is wrong, and you probably incorrectly deduced which test failed.
Check here how to reproduce failing test cases locally, run them in your IDE, and observe your solution failing.
It's because that's not a fixed test and I can't reproduce it (after 20 submissions not even once, and seeing the code, it's impossible for it to generate a test where the expected result is wrong), stop attacking me, I'm trying to help you.
After seeing your code, it passes random tests, because they use only lowercase letters and fails some fixed test cases where there are capital letters (and those are the 4 tests you say they're wrong when they're not). Why are you using that loop for? The test suite is ok, your code is wrong.
Post your code, as instructed in the link, are you saying the tests are wrong and 6223 persons passed them? Highly unlikely.
The tests in Java seem to be ok:
Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution