The method you're looking for is charAt . Here's an example: String text = "foo"; char charAtZero = text.charAt(0); System.out.println(charAtZero); ...
確定! 回上一頁