我的方法定义如下
def processLine(tokens: Array[String]) = tokens match { // ...
假设我想知道第二个字符串是否为空
case "" == tokens(1) => println("empty")
不编译。我该怎么做呢?
https://stackoverflow.com/questions/6647166
相似问题