fork download
  1. object Main extends App {
  2. val array = Array[AnyRef](
  3. new Integer(1),
  4. new Integer(2),
  5. new Integer(3),
  6. new Integer(4),
  7. new Integer(5)
  8. )
  9. val seq = array.toSeq
  10. array(1) = null
  11. println(seq.mkString(","))
  12. }
Success #stdin #stdout 0.42s 2247168KB
stdin
Standard input is empty
stdout
1,null,3,4,5