public class MaptoGet {
public static String spliturl(String url, Map maps){
Iterator iterator = maps.keySet().iterator();
int countLown = 0;
while (iterator.hasNext()){
String key = iterator.next();
if(countLown==0){
url+="?"+key+"="+maps.get(key);
}else{
url+="&"+key+"="+maps.get(key);
}
countLown++;
}
return url ;
}