added java file and example .bmp