Expected For Function Prototype In Java