How to hold position of every character from encoded string

I am trying to hold the position of every character (A-Z) from encoded string. I am unable to find out a way to implement it actually (JAVA)

Below is one example from CPP which i am trying to modify as supported in JAVA.

map enc = new map();

for (int i = 0; i < encoded.length(); i++)

{

enc[encoded.charAt(i)] = i;

}...

Read More »

By: StackOverFlow - 5 days ago

Related Posts