java sample - private