What is the output of the following Java program?
package test; import java.util.*; class Main { public staticvoid main(String[] argh) { StringTokenizer st = newStringTokenizer(“{5A=1500,2B=1950,5A=1000,3C=1770}”, (“{=,}”)); Maphm = new HashMap(); while (st.hasMoreTokens()) {hm.put(st.nextToken(), st.nextToken()); }System.out.println(hm.toString()); } }
Expert Answer
An answer will be send to you shortly. . . . .