假设我们一开始有这样一个文本:
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
hashMap.put("","
我现在想要给每行的末尾添加上 );
执行结果:
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");
hashMap.put("",");