摘要:
public class Test4 { public static void main(String[] args) { func7(); } public static void func7(){ String[] str = {"Allen","Smith","James","Martin", 阅读全文
摘要:
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< 阅读全文
摘要:
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 阅读全文
摘要:
第一种方法 public class Test4 { public static void main(String[] args) { System.out.println(san(56)); } public static boolean san(int n){ if((n+"").length( 阅读全文
摘要:
第一种方法 第二种方法 阅读全文
摘要:
public class Test5 { public static void main(String[] args) { String str = "kDLs4f0565v6K"; tod(str); System.out.println("小写字母的个数是"+tod(str)[0]); Syst 阅读全文
摘要:
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 阅读全文
摘要:
public class b1 { public static void main(String[] args) { metod1(); } public static void metod1(){ String a = "hgy231"; for (int i = a.length() - 1; 阅读全文