The Unix Divide

Java

January 6, 2008 · Leave a Comment

Is quite cool after all. 

I had an epiphany about a week ago because I wanted to use pointers in Java, or at least a hash from Perl.  Well, luckily the JavaCollection library has things like HashMap, which does the same thing.  Now it looks like I’ll have to sort it with an ArrayList. 

The main purpose for using these “pointers” is to allow the code to handle dynamic situations, where the results of some operations aren’t know in advanced (like with just plugging in an enum, instead).

People keep saying Java is an OO language only, but you can use static methods and vars, and then it’s just like using a code module in VB or Perl, conceptually.  It’s the lack of pointers that is limiting, that’s _why_ you end up using objects instead.

Categories: Uncategorized

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment