[蟲?] cannot find symbol
抱歉本人不會JAVA
發現只要是像在^^^標註中的寫法,就會有cannot find symbol的問題
JavaRDD<Integer> lineLengths = lines.map(new Function<String, Integer>() {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
public Integer call(String s) { return s.length(); }
});
int totalLength = lineLengths.reduce(new Function2<Integer, Integer, Integer>() {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
public Integer call(Integer a, Integer b) { return a + b; }
});
javac -version
javac 1.7.0_72
在mvn的pom.xml檔中設定 ,也是一樣
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
困了幾天了,還是交給專業的來好了
感謝
--
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.110.107.24
※ 文章網址: http://www.ptt.cc/bbs/java/M.1418044969.A.E0E.html
→
12/08 22:18, , 1F
12/08 22:18, 1F
→
12/08 22:32, , 2F
12/08 22:32, 2F
→
12/08 22:54, , 3F
12/08 22:54, 3F
→
12/09 04:33, , 4F
12/09 04:33, 4F
→
12/09 04:35, , 5F
12/09 04:35, 5F
→
12/10 18:36, , 6F
12/10 18:36, 6F
→
12/10 18:37, , 7F
12/10 18:37, 7F
→
12/10 18:38, , 8F
12/10 18:38, 8F
→
12/13 20:12, , 9F
12/13 20:12, 9F
java 近期熱門文章
PTT數位生活區 即時熱門文章