KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My method definition looks as follows def processLine(tokens: Array[String]) = tokens match { // ... Suppose I wish to know whether the second string is blank case "" == tokens(1) => println("empty") Does not compile. How do I go about doing this?
Tags (comma-separated)
Save Edits
Cancel