摘要: String String str ="abc"; (字符串常量) str = "def"; (指向新的字符串) String str1 =new String(“tom”); String str2 =str1; str1 =“rose”; (把新的字符串地址赋给str1) 输出结果 char[] 阅读全文
posted @ 2016-09-14 16:50 庚庚庚庚庚辰 阅读(187) 评论(0) 推荐(0) 编辑
摘要: int [] a1= new int[5]; int []a2= new int[5]; for(int i=0;i<9;i++) { for(int j=i;j<9;j++) { if(a1[i]>a2[j+1]) { int zhong =a1[i]; a1[i]=a2[j+1]; a2[j+1 阅读全文
posted @ 2016-09-14 13:56 庚庚庚庚庚辰 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-14 13:44 庚庚庚庚庚辰 阅读(292) 评论(0) 推荐(0) 编辑