摘要:
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
阅读(302)
评论(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
阅读(201)
评论(0)
推荐(0)
摘要:
第一种方法 第二种方法 阅读全文
posted @ 2017-11-29 14:11
acaca
阅读(248)
评论(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
阅读(833)
评论(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
阅读(488)
评论(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
阅读(110)
评论(0)
推荐(0)
浙公网安备 33010602011771号