charAt(0); //This will return the 6th char of the string char ch2 = str. ... charAt(20); System.out.println("Character at 0 index is: "+ch1); ...
確定! 回上一頁