| 
Scala example source code file (arraycopy.scala)
 The Scala arraycopy.scala source code
object Test {
  def main(args: Array[String]) {
    val a = new Array[Int](10)
    val b = new Array[Any](10)
    for (i <- 0 until 10) b(i) = i
    
    Array.copy(b, 3, a, 3, 7)
    assert(a.toSeq == List(0, 0, 0, 3, 4, 5, 6, 7, 8, 9))
  }
}
Other Scala examples (source code examples)Here is a short list of links related to this Scala arraycopy.scala source code file:  | 
| ... this post is sponsored by my books ... | |
         
           #1 New Release!  | 
      
         
           FP Best Seller  | 
  
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse 
URI on this website is
paid back to open source projects.