2018年5月31日
摘要: public class Nine { public static void main(String[] args) { //外层循环控制行数 for (int i = 9;i >=1;i--){ //内层循环控制列 j<=I for (int j = 9; j >= i;j--){ System. 阅读全文
posted @ 2018-05-31 15:15 背起全世界の蜗牛 阅读(208) 评论(0) 推荐(0) 编辑
摘要: public class Money{ public static void main(String[] args) { String a = "Hello Java World\n"+ "Hello Java Hello World"; System.out.println(a.replace(" 阅读全文
posted @ 2018-05-31 15:09 背起全世界の蜗牛 阅读(242) 评论(0) 推荐(0) 编辑
摘要: public class F { public static void main(String[] args) { /**截取字符串,第4位以后的字符串用*代替*/ String s = "Hello Java World"; System.out.println("直接输出:" + s); Str 阅读全文
posted @ 2018-05-31 15:05 背起全世界の蜗牛 阅读(9010) 评论(0) 推荐(1) 编辑
摘要: public class FanZhuan { public static void main(String[] args) { String s = "987654321088123about我是谁"; System.out.println("直接输出:" + s); String str = S 阅读全文
posted @ 2018-05-31 15:01 背起全世界の蜗牛 阅读(301) 评论(0) 推荐(0) 编辑
摘要: public class FanZhuan { public static void main(String[] args) { /**第一种方法*/ String s = "987654321088123about我是谁"; System.out.println("直接输出:"+s); Strin 阅读全文
posted @ 2018-05-31 14:56 背起全世界の蜗牛 阅读(4033) 评论(0) 推荐(0) 编辑
摘要: public class D { public static void main(String[] args) { System.out.println("请输入数字(最大十位数):"); Scanner sc = new Scanner(System.in); int sun = sc.nextI 阅读全文
posted @ 2018-05-31 14:49 背起全世界の蜗牛 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 父类:public class Subjects { public void b() { System.out.println("学科"); } public void a(){ System.out.println("这是继承父类的方法:Subjects"); } public void c() 阅读全文
posted @ 2018-05-31 14:43 背起全世界の蜗牛 阅读(8761) 评论(0) 推荐(0) 编辑
摘要: public class StringToKenizer { public static void main(String[] args) { String strin = "Hello Java World!!的"; System.out.println("原字符串:" + strin + "\n 阅读全文
posted @ 2018-05-31 14:29 背起全世界の蜗牛 阅读(889) 评论(0) 推荐(0) 编辑
摘要: public class DaXie { public static void main(String[] args) { String strin = "Hello Java World!!的"; String a[] = GetWorld1(strin); for (int i = 0;i < 阅读全文
posted @ 2018-05-31 14:21 背起全世界の蜗牛 阅读(1747) 评论(0) 推荐(0) 编辑
摘要: public class DaXie { public static void main(String[] args) { /**将所有的字符串转换成大写或小写字母并打印出来*/ String str = new String("Hello Java World"); System.out.prin 阅读全文
posted @ 2018-05-31 11:18 背起全世界の蜗牛 阅读(57167) 评论(0) 推荐(1) 编辑