Open TheGreatHaige opened 5 months ago
原: String str = "Hello, world!"; String prefix = str.substring(0, 5); // ᨀ 取前5个字符,即 "Hello,"
改: String str = "Hello, world!"; String prefix = str.substring(0, 5); // ᨀ 取前5个字符,即 "Hello"
原: String str = "Hello, world!"; String prefix = str.substring(0, 5); // ᨀ 取前5个字符,即 "Hello,"
改: String str = "Hello, world!"; String prefix = str.substring(0, 5); // ᨀ 取前5个字符,即 "Hello"