結果 : how to declare a string function in java