Playing around with the JPA, got this error when I added a reference to my persistence layer in a console app.
Needed to set a private static class variable for some unit tests I was writing for a small Java project today. Here is how I did it.
A quick example of how to write a unit test with JUnit in Netbeans.
A simple method that reads the HTTP response from a URL request and returns the content as a string in Java.
Shows how to enumerate over a HashMap in Java by getting it’s keys and using the Iterator
Was playing around with J2ME in NetBeans for the latest module of my Open Uni course when I got this rather wierd error when creating a class derived from javax.microedition.midlet.MIDlet.
Shows how to create a string from a byte array in Java.