System.out.println(txt.indexOf("locate")); // Outputs 7. Try it Yourself ». Java counts positions from zero. 0 is the first position in a string, ...
確定! 回上一頁