String b=null,b1 =null;
BufferedReader in = new BufferedReader(new FileReader("F:\\a.txt"));
while((line = in.readLine())!=null)
a=line.split(",")[0];
b=line.split(",")[1];
if(map.get(a)!=null)
{ b1= (String) map.get(a);
map.remove(a);
int temp=Integer.parseInt(b)+Integer.parseInt(b1);
String temp1=String.valueOf(temp);
map.put(a, temp1);
map.put(a, b);
BufferedReader in1 = new BufferedReader(new FileReader("F:\\b.txt"));
while((line=in1.readLine())!=null)
a1=line.split(",")[0];
b1=line.split(",")[1];
if(a1.equals("id"))
if(map.get(a1)!=null)
{ b= (String) map.get(a1);
map.remove(a1);
int temp=Integer.parseInt(b1)+Integer.parseInt(b);
// String temp1=String.valueOf(temp);
map.put(a1, temp);
map.put(a1, b1);
StringBuffer str = new StringBuffer();
FileWriter fw = new FileWriter("F:\\c.txt", true);
Set set = map.entrySet();
Iterator iter = set.iterator();
while(iter.hasNext()){
Map.Entry entry = (Map.Entry)iter.next();
str.append(entry.getKey()+" , "+entry.getValue()+"\r\n");
fw.write(str.toString());
fw.close();
2019-07-17 19:30:12
企业邮箱发送邮件时,若出现投递失败产生退信,内容提示包含如下: the mta server of * reply:550 failed to meet SPF requirements 或者 the mta server of 163.com — 163mx01.mxmail.netease.com(220.181.14.141) reply:550 MI:SPF mx14,QMCowECpA0qTiftVaeB3Cg—.872S2 1442548128 http://mail.163.com/help
298984
极限学习机(ELM)从原理到程序实现(附完整代码)
Java java jdbc thin远程连接并操作Oracle数据库
Eclipse颜色主题(Color Theme)与缩进线(Indent Guide)插件安装教程
【Java技术指南】「Unirest编程专题」一起认识一下一个“灰常”优秀的Http工具,让Http开发变得如此简单