very simple yaar just add lineMsgbox "you got" +iafter out.println as belowi am not sure about the msgbox functionperhaps it might be message......