s.charAt()

public class ish{
public static void main(String[]args)
{
 String s="call me ishmae";
System.out.println(s.charAt(s.length()-1));
}
}

原文地址:https://www.cnblogs.com/fantasy12436109/p/3971279.html