Miscelaneous Java thingies