摘要:        
package lei; public class Test2 { public static void main(String[] args) { String s="我爱你"; StringBuffer s1 = new StringBuffer("我爱你"); String s2=new String(s1.reverse()); Syste...    阅读全文
posted @ 2017-04-25 19:12
苏轼的红烧肉
阅读(112)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package lei; public class TestStringpool { public static void main(String[] args) { String s="java"; String s1="java"; //是否相等 if(s==s1){ System.out.println("是同一个对象"); ...    阅读全文
posted @ 2017-04-25 15:24
苏轼的红烧肉
阅读(165)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package lei; public class TestString { public static void main(String[] args) { String s="郭明明成精说过"; String s1="中国人ok"; System.out.println(s.length()); System.out.println(s1.getBytes().len...    阅读全文
posted @ 2017-04-25 14:43
苏轼的红烧肉
阅读(94)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号