运行 ❯
获取您
自己的Java
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
public class Main { public static void main(String[] args) { String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; System.out.println("The length of the txt string is: " + txt.length()); } }
txt 字符串的长度是:26