lastIndexOf("Afternoon")); String subString =input.substring(0,input.lastIndexOf("Afternoon")-1); System.out.println(subString); ...
確定! 回上一頁