Subscribe to cfoley's Blog        RSS Feed
- - - - -

WinSplit Revolution

Icon Leave Comment
A couple of days ago, I started testing a utility called WinSplit Revolution...
* * * * *

s = new String(s);

Icon 12 Comments
I recently discovered a memory leak in one of my Java applications.

"What's this?", I hear you say.
"Isn't the point of the garbage collector to keep Java free from memory leaks?"

Well yes, to a point. The garbage collector will clear up after you when you stop using old objects but if you leave a reference to...
- - - - -

Iterating text files the Java way

Icon Leave Comment
My latest Java snippet lets me iterate through a text file with a simple for...each loop. Using it looks something like this. Java's file handling has always seemed overly verbose to me (especially when I only ever want to do simple things with it) so I'm glad to have a more concise idiom.

...
- - - - -

Quirky Hello World!

Icon Leave Comment
I came across something quite interesting while I was coding today. Before I explain further, take a look at the following short Java program. It outputs two lines of text. Each line could be one of the following:

No Message
Hello World!
Not today.

Write down what you think each line will be, then scroll down for the answer. Don't cheat...
- - - - -

Testing a concept with JUnit

Icon Leave Comment
Welcome to my first blog post.

JUnit is a framework for running automated tests on your code. Essentially, you write tests to make sure different parts of your code are working properly. It really comes into its own when you make changes to your project. If something breaks, your tests should pick it up. Not only do you know that a bug has been...
Page 1 of 1

July 2014

S M T W T F S
  12345
6789101112
13141516171819
2021 22 23242526
2728293031  

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    0 user(s) viewing

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