先 IMPORT!!!!
scala> import scala.collection._
import scala.collection._
scala> SortedMap("2"->"jx","1"->"hxf","3"->"hl")
res0: scala.collection.SortedMap[String,String] = Map(1 -> hxf, 2 -> jx, 3 -> hl)
时间: 2024-11-06 19:12:17
先 IMPORT!!!!
scala> import scala.collection._
import scala.collection._
scala> SortedMap("2"->"jx","1"->"hxf","3"->"hl")
res0: scala.collection.SortedMap[String,String] = Map(1 -> hxf, 2 -> jx, 3 -> hl)