Expected For Function Declaration In Java