Please carefully observe these two scenarios.
scala> var aa ="ABCD, aaaa, fdad and others, lkda;fd, fdaf".split(",")
aa: Array[String] = Array(ABCD, " aaaa", " fdad and others", " lkda;fd", " fdaf")
scala> var aa ="ABCD, aaaa, fdad and others, lkda;fd, fdaf".split(" ")
aa: Array[String] = Array(ABCD,, aaaa,, fdad, and, others,, lkda;fd,, fdaf)
in first scenario split based on comma (,) In this scenario first word not showing within "quotes" rest of the words showing within "quotes". Why?
In second scenario separate by comma here everything displaying without "Quotes" Why ? Usually Strings display within a quotes, but here not displaying like that why?