摘要: public class Test { public static void main(String[] args) { int[] arr = {11, 22, 33, 44, 5, 6}; reverse(arr); printArray(arr); } public static void p 阅读全文
posted @ 2022-01-15 18:32 大灰狼21 阅读(82) 评论(0) 推荐(0)
摘要: 公鸡5,母鸡3,小鸡1/3 一共一百只,一共一百块 public class Test { public static void main(String[] args) { for (int x = 0; x <= 20; x++) { for (int y = 0; y <= 33; y++) { 阅读全文
posted @ 2022-01-15 17:29 大灰狼21 阅读(185) 评论(0) 推荐(0)
摘要: public class Test { public static void main(String[] args) { int[] arr = new int[20]; arr[0] = 1; arr[1] = 1; for (int i = 2; i < arr.length; i++) { a 阅读全文
posted @ 2022-01-15 17:24 大灰狼21 阅读(28) 评论(0) 推荐(0)
摘要: 手动导包 快捷导包alt+enter 自动导包,写的时候就加上了 阅读全文
posted @ 2022-01-15 10:08 大灰狼21 阅读(72) 评论(0) 推荐(0)
摘要: 查看程序执行流程,调试程序。 Debug调试,又名断点调试。 加断点:在行号后鼠标单击。 运行带断点的程序:右键Debug执行。shift+F9 看:Debugger窗口、 看console窗口 点F7程序继续执行 点stop结束 删除单个断点,点一下 删除多个断点, 阅读全文
posted @ 2022-01-15 09:53 大灰狼21 阅读(293) 评论(0) 推荐(0)