在Rstudio编码

时间:2016-02-16 11:17:46

标签: rstudio

HashMap<String, Integer> threadsCount = new HashMap<String, Integer>();

for (Thread t : Thread.getAllStackTraces().keySet()) {
    if (t instanceof Abc) {
        if (t.getState() != Thread.State.TERMINATED) {
            String key = ((Abc)t).getKey();
            if (threadsCount.containsKey(key)) {
                threadsCount.put(key, threadsCount.get(key) + 1);
            } else {
                threadsCount.put(key, 1);
            }
        }
    }
}

错误 -

  

错误:意外')'in“+ ordered = TRUE”“

1 个答案:

答案 0 :(得分:0)

您应该从代码中删除++意味着它是一条线的延续,仅仅是美学。

使用?factor获取有关使用函数的参数和语法的信息。

相关问题