showname this is a string scala> showname _ res1: () => Unit = , 2.scala> res1 res2: () => Unit = scala> res1() this is a string
scala> def showname(s: String) = println("this is a string") showname: (s: String)Unit scala>, 3.showname :9: error: missing arguments for method showname; follow this method with `_' if you want to treat it as a partially applied function showname, 4.All of the above">