Oct 8 2009

Java Gotchas

Gotchas are bits of code that do something completely different from what you expected. These bits of code are often hard to catch and identify leaving you debugging for hours on end with no luck. The best way to keep yourself safe is to know them ahead of time. Here are some of the ones I have encountered before. Continue reading


Sep 2 2009

How Java passes variables

In my opinion one of the most confusing topics that Java has to offer is how it passes its variables. Two people can argue for over a page trying to say the same thing but not realize it until after.
Continue reading


Aug 31 2009

Quick Intro to the Ternary Operator

The Ternary Operator

The ternary operator is a source of confusion for many beginning programmers. In case you don’t know what the ternary operator is, it looks something like

String message = (isvalid?"Valid":"Invalid");

The ? represents the thought that goes through their head when they see it and they probably won’t get to the : .
Continue reading


Jul 13 2009

Converting Images from rgb to grayscale with Java

Not sure what motivated me here but I took a little time and came up with this. It takes the original image file ( can be a multitude of formats, has worked with both jpg and png so far) and outputs a grayscale image (jpeg or png).
Continue reading