Subscribe to The Linking To My Other Blog Didn't Work, So This Here Is The Result        RSS Feed

PrettyPrint + Blogger Sucks, But System Rules

Icon Leave Comment
Trying to formally learn the Java language now, and the first step is through The Java Tutorials provided by Oracle itself. Well, I learned what are all the primitive types and this is the first time I've encountered this method from the System object:

class ArrayCopyDemo {
    public static void main(String[] args) {
        char[] copyFrom = { 'd', 'e', 'c', 'a', 'f', 'f', 'e',
			    'i', 'n', 'a', 't', 'e', 'd' };
        char[] copyTo = new char[7];

        System.arraycopy(copyFrom, 2, copyTo, 0, 7);
        System.out.println(new String(copyTo));


By the way, I'm quitting trying to put up development blog on Blogger, as the PrettyPrint will go off when you change templates. Bummer. Oh well, this will be my main programming related blog then. :)

0 Comments On This Entry


Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry