
can any solve this program even my friends tried but couldn't do that and program is in the link below,please help me

import java.util.*;
public class StringDemo {
static String a="{a=100;b=200;c=300}";
public static void main(String args[]) {
String st=a.replace("{","");
String s=st.replace("}","");
String[] b = s.split(";");
String[][] str = new String[b.length][];
int r = 0;
for (String row : b) {
str[r++] = row.split("\\=");
}
Map<String, String> map = new HashMap<String, String>(str.length);
for (String[] array : str){
map.put(array[0], array[1]);
}
Set set = map.entrySet();
Iterator it = set.iterator();
while(it.hasNext()) {
Map.Entry me = (Map.Entry)it.next();
System.out.println(me.getKey() + ": "+me.getValue());
}
}
}

thank you friend for the great help!!!
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.