最赞回答 / 慕斯卡8999064
<dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>2.5.1</version> </dependency> <dependency...
2018-01-12
\t没法分割啊,我的一到这儿就报错了
String[] rowAndLine = value.toString().split("\t");
//矩阵的行号
String row = rowAndLine[0];
System.out.println("矩阵行号:"+row);
System.out.println(rowAndLine[1]);
String[] line = rowAndLine[1].split(",");
String[] rowAndLine = value.toString().split("\t");
//矩阵的行号
String row = rowAndLine[0];
System.out.println("矩阵行号:"+row);
System.out.println(rowAndLine[1]);
String[] line = rowAndLine[1].split(",");
2017-12-12