Biblioteca Java - Blame information for rev 39

Subversion Repositories:
Rev:
Rev Author Line No. Line
39 mihai 1 package introducere.java.arrays;
4 mihai 2  
3  
4 class ArrayCopyDemo {
5     public static void main(String[] args) {
6         char[] copyFrom = { 'd', 'e', 'c', 'a', 'f', 'f', 'e',
7                             'i', 'n', 'a', 't', 'e', 'd' };
8         char[] copyTo = new char[7];
9  
10         System.arraycopy(copyFrom, 2, copyTo, 0, 7);
11         System.out.println(new String(copyTo));
12     }
13 }