2017年11月29日
摘要: public class Test4 { public static void main(String[] args) { func7(); } public static void func7(){ String[] str = {"Allen","Smith","James","Martin", 阅读全文
posted @ 2017-11-29 15:01 acaca 阅读(179) 评论(0) 推荐(0) 编辑
摘要: public class Test4 { public static void main(String[] args) { med(); } public static void med(){ int[] a ={1,2,3,4,5,0}; int count = 0; for(int i=0;i< 阅读全文
posted @ 2017-11-29 14:44 acaca 阅读(849) 评论(0) 推荐(0) 编辑
摘要: public class Test3{ public static void main(String[] args){ int sum = 0; for(int i=1;i<=1000;i++){ if(si(i)==true){ continue; } sum += i; } System.out 阅读全文
posted @ 2017-11-29 14:34 acaca 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 第一种方法 public class Test4 { public static void main(String[] args) { System.out.println(san(56)); } public static boolean san(int n){ if((n+"").length( 阅读全文
posted @ 2017-11-29 14:11 acaca 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 第一种方法 第二种方法 阅读全文
posted @ 2017-11-29 14:11 acaca 阅读(241) 评论(0) 推荐(0) 编辑
摘要: public class Test5 { public static void main(String[] args) { String str = "kDLs4f0565v6K"; tod(str); System.out.println("小写字母的个数是"+tod(str)[0]); Syst 阅读全文
posted @ 2017-11-29 14:07 acaca 阅读(807) 评论(0) 推荐(0) 编辑
摘要: public class b1 { public static void main(String[] args) { metod2(); } public static void metod2(){ String a = "1,4,7,13,5,17,9"; String str[] = a.spl 阅读全文
posted @ 2017-11-29 14:05 acaca 阅读(470) 评论(0) 推荐(0) 编辑
摘要: public class b1 { public static void main(String[] args) { metod1(); } public static void metod1(){ String a = "hgy231"; for (int i = a.length() - 1; 阅读全文
posted @ 2017-11-29 13:58 acaca 阅读(102) 评论(0) 推荐(0) 编辑