updating java examples

Maybe move this allocation to outside the render loop?  We probably don't need to kick this back to the GC.