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));
    }
}


Awesome!

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

June 2017

S M T W T F S
        123
45678910
11121314151617
18192021222324
25262728 29 30 

Tags

Recent Entries

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)

Categories