What’s new (to me)

I haven’t really coded in depth with Java for awhile now, but now for COMP9318 project 1 I need to do some processing that requires different data structures.

From memory, back then there were only 2 basic data structures that I use over and over again, they are array and vector. But now Java got a comprehensive API for data structures under Collection. Very exciting.

I also found yesterday that I can convert string to integer by simply:
String number = 1;
int i = (Integer)number;

I remember in the old days, we need to do:
String number = 1;
int i = (new Integer(number)).toInt();

This entry was posted on Monday, April 16th, 2007 at 10:39 pm and is filed under java. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.