We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
For those of you who are trying to create a HashMap but can't because you can't import it, you can still create a HashMap by declaring the package. Here's the code below.
I coded my solution in repl.it and there was no way to port it to Hackerrank because of the import problem.
I was starting to go crazy because I saw solutions using HashMaps and even Arrays without using the imports.
i had solution working in eclipse. however due to hackerrank not allowing import statement to edit, program was giving compilation error. Thank you ! learn new way.
Java Anagrams
You are viewing a single comment's thread. Return to all comments →
For those of you who are trying to create a HashMap but can't because you can't import it, you can still create a HashMap by declaring the package. Here's the code below.
Thank you so much kzhang9101
I coded my solution in repl.it and there was no way to port it to Hackerrank because of the import problem. I was starting to go crazy because I saw solutions using HashMaps and even Arrays without using the imports.
Thank you very very much!! :D
Thank you so much , i needed that line
Thank you so much!
i had solution working in eclipse. however due to hackerrank not allowing import statement to edit, program was giving compilation error. Thank you ! learn new way.
Import is not working in some cases becoz the question restrict us to use some predefined functions and Arrays.sort() is one of them.
Here is the answer of java anagrams problem: Java Anagrams Solution
thank u sm!
Thanks a lot. I saved a lot of time.
This is gold