結果 : how to declare a string method in java