摘要: public class youyi { public static void main(String[] args) { System.out.println(StringAt("APP", "abcd apple")); } public static int StringAt(String s,String sub){ String a=s.toLowerCase();... 阅读全文
posted @ 2017-04-26 16:57 苏轼的红烧肉 阅读(218) 评论(0) 推荐(0)
摘要: public class youyi { public static void main(String[] args) { moveToRight("abcd",3); } public static void moveToRight(String s,int p){ System.out.print(s.substring(s.length()-p... 阅读全文
posted @ 2017-04-26 16:28 苏轼的红烧肉 阅读(154) 评论(0) 推荐(0)
摘要: public class Person { String name; int age; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void... 阅读全文
posted @ 2017-04-26 15:41 苏轼的红烧肉 阅读(102) 评论(0) 推荐(0)
摘要: import javax.management.RuntimeErrorException; public class Test11 { public static void main(String[] args) { //1.有一身份证号,判断此为男还是女,基于此方法,写一个算法,判断一个身份证号为男还是女。 ////2.求出字符串中有多少种字符,以及每个字符的个数 // stati... 阅读全文
posted @ 2017-04-26 14:39 苏轼的红烧肉 阅读(315) 评论(0) 推荐(0)