Expected Function Prototype In Java