最贊回答 / 慕斯卡8999064
????? ? <dependency> ???????????? <groupId>org.apache.hadoop</groupId> ???????????? <artifactId>hadoop-common</artifactId> ???????????? <version>2.5.1</version> ???????? </dependency> ???????? <dependency...
2018-01-12
轉(zhuǎn)置沒有問題的,只是輸出的結(jié)果順序不太一樣,注意看列號,然后對應起來(算法應該就沒毛病的)
2017-12-17
\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