Here is a snippet of the code-
import java.util.concurrent.LinkedBlockingQueue  
def main(args:Array[String]) {  
    val queue=new LinkedBlockingQueue  
    queue.put("foo")  
}
This gives me -
error: type mismatch;
 found   : java.lang.String("foo")
 required: Nothing
                  queue.add("foo")
My understanding is its because of me not specifying the type of the elements going into the queue. If thats the case, how do we specify types in scala for the LinkedBlockingQueue instead of the default generic ones?