Some java pro's addition