blob: 1ed333792ae98e48e6758e914623e23a166d20d0 (
plain) (
tree)
|
|
object Test {
def main(args: Array[String]): Unit = {
val a: Array[String] = "goobledy bing, goobledy bling, wikka wokka wup.".split("")
val b = java.util.Arrays.asList(a: _*)
java.util.Collections.shuffle(b)
// we'll say rather unlikely a.sameElements(b) unless
// they are pointing to the same array
import scala.collection.JavaConversions._
assert(a sameElements b)
}
}
|