examples code specific to java language