java

来源:互联网 发布:淘宝账号查询购买记录 编辑:程序博客网 时间:2024/06/05 10:23
/*字符串的用法*///1.public class str {public static void main(String[] args){String s="Hello!";System.out.println("s字符串的长度为:"+s.length());//2.String str1="Hellohytrre";if(s.startsWith(str1.substring(0,6)))System.out.println("相同");}}

0 0