11 2024 档案

摘要:第19行的变量 level是 静态方法change方法内部的本地变量,他对main方法里的level或者是实例变量level没什么影响。 public class Pokemon {// 一个名为Pokemon的类 public String name;// 实例变量name public int 阅读全文
posted @ 2024-11-27 21:22 刘老六 阅读(8) 评论(0) 推荐(0) 编辑
摘要:pass by what? a. 下列程序 每一行怎么运行? b. 画出box-and-pointer 指示图 c. 在第19行,level被赋值为50 ,level是什么?是Pokemon的实例变量?(instance variable)还是change方法的本地变量?(local variabl 阅读全文
posted @ 2024-11-27 21:04 刘老六 阅读(6) 评论(0) 推荐(0) 编辑
摘要:1 int size = 27;// 声明一个 int 类型的 变量size ,并把27赋值给他 2 String name = "Fido";// 声明一个String类型的变量 ,并把“Fido”赋值给他 3 Dog myDog = new Dog(name, size);// 声明一个Dog类 阅读全文
posted @ 2024-11-26 10:28 刘老六 阅读(10) 评论(0) 推荐(0) 编辑
摘要:be aware of the fucking "\r" // Node.js program to demonstrate // the fsPromises.readFile() method // Include fs module const fs = require("fs"); cons 阅读全文
posted @ 2024-11-26 09:00 刘老六 阅读(5) 评论(0) 推荐(0) 编辑
摘要:// 1.写出每一行(你认为)的运行结果 int size = 27; String name = "Fido"; Dog myDog = new Dog(name, size); int x = size - 5; if (x < 15) { myDog.bark(8); } while (x > 阅读全文
posted @ 2024-11-25 21:16 刘老六 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1 int size = 27; 2 String name = "Fido"; 3 Dog myDog = new Dog(name, size); 4 int x = size - 5; 5 if (x < 15) { 6 myDog.bark(8); 7 } 8 9 while (x > 3) 阅读全文
posted @ 2024-11-25 20:29 刘老六 阅读(6) 评论(0) 推荐(0) 编辑

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