2016年2月29日

字符串的常量查询及索引查询

摘要: 1 String str="字符串常量字符串常量"; 2 String str1=new String("字符串常量");//构造方法 3 String str2=new String("字符串常量"); 4 String str3="字符串常量"; 5 char[]c=new char[]{'我' 阅读全文

posted @ 2016-02-29 18:44 beens 阅读(446) 评论(0) 推荐(0)

冒泡排序例题

摘要: 1 int []g=new int[] {49,38,65,97,76,13,27,49}; 2 int m=0; 3 System.out.print("原始顺序"); 4 for(int t:g) 5 { 6 System.out.print(t+" "); 7 }System.out.prin 阅读全文

posted @ 2016-02-29 18:41 beens 阅读(1018) 评论(0) 推荐(0)

导航