展开全部
public static void main(String[] args) {
Map maps = new HashMap();
String str = "" ;
int idx = str.indexOf("\"") ;
int nextIdx = str.indexOf("\"", idx + 1) ;
int i=0;
while( idx!=-1 && nextIdx!=-1 ) {
i++;
System.out.println( str.substring(idx +1 , nextIdx ) ) ;
maps.put("line"+i,str.substring(idx +1 , nextIdx ) );
idx = str.indexOf("\"",nextIdx +1 ) ;
nextIdx = str.indexOf("\"", idx +1 ) ;
}
Set keys = maps.keySet();
for(String s:keys){
System.out.println(s+" = " + maps.get(s));
}
}
加点难62616964757a686964616fe4b893e5b19e31333332623433度