12 2024 档案

摘要:Unit Testing with JUnit, Debugging 准备 装好 CS61B插件(emmmmm,不装也没事) 把lab2 的IntList.java 复制到 lab3/IntList 文件夹. 看看关于测试的课程视频 介绍 啊? JUnit是java测试框架,现在要用JUnit进行单 阅读全文
posted @ 2024-12-25 15:41 刘老六 阅读(9) 评论(0) 推荐(0) 编辑
摘要:flatten 方法接受二维数组,返回一个一维数组 比如,flatten({{1, 2, 3}, {}, {7, 8}}) should return {1, 2, 3, 7, 8} 补全下面的程序片段 public static int[] flatten(int[][] x) { int tot 阅读全文
posted @ 2024-12-13 16:29 刘老六 阅读(4) 评论(0) 推荐(0) 编辑
摘要:为下面方法添加 SLList.insert 方法,要求签名如public void insert(int item, int position) {} ,如果position大于最后一个元素,那就是添加到最后。 (注意这个作业里的SLList和课程中介绍的SLList相比少点东西,故意的,可能是为了 阅读全文
posted @ 2024-12-11 22:46 刘老六 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Getting the Skeleton Files ,网站上应该有仓库地址,这个也行,https://gitee.com/heqilaoge/skeleton-sp18。 拉下来找到proj0 ,就能开始作业。可以不使用IDE。这个作业是个 快速学习java基本语法和知识的教程,也可以快速重温ja 阅读全文
posted @ 2024-12-03 14:36 刘老六 阅读(11) 评论(0) 推荐(0) 编辑
摘要:1.写出 第21、24行的运行结果。(画出box-pointer指示图会对答题很有帮助) 1 public class Shock { 2 public static int bang; 3 public static Shock baby; 4 public Shock() { 5 this.ba 阅读全文
posted @ 2024-12-02 21:23 刘老六 阅读(7) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示