added simple java prototypes