Oct
8
2009
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
2 comments | tags: gotcha, Java | posted in Articles, Java, Uncategorized
Sep
2
2009
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
3 comments | tags: Java, pass, Tutorial, variables | posted in Articles, Java, Tutorial
Aug
31
2009
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
no comments | tags: Java, ternary operator, Tutorial | posted in Articles, Java, Tutorial
Jul
13
2009
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
2 comments | tags: gray, grayscale, images, Java, rgb | posted in Articles, Java, Snippet