結果 : how to check if input is an integer or string java