摘要: 下文所有的 字都变成了*,不知道为什么 const code = { "110000": "北京市", "110101": "北京市东城区", "110102": "北京市西城区", "110105": "北京市朝阳区", "110106": "北京市丰台区", "110107": "北京市石景山区 阅读全文
posted @ 2025-07-23 10:15 火鸡的呐喊 阅读(219) 评论(0) 推荐(0)
摘要: { "author": "akamud", "name": "OneLight", "colors": { "activityBar.background": "#C7EDCC", "activityBar.foreground": "#121417", "activityBarBadge.back 阅读全文
posted @ 2021-07-26 20:36 火鸡的呐喊 阅读(122) 评论(0) 推荐(0)
摘要: 当我们执行一个方法的时候这个方法可能存在异常,异常发生了是停止继续运行的,所以我们需要通过try{}catch( ){ }去捕获异常 public class Demo { int chufa(int a,int b) { return a/b; } public static void main( 阅读全文
posted @ 2021-02-21 15:42 火鸡的呐喊 阅读(50) 评论(0) 推荐(0)
摘要: 内部类 成员内部类 // Computer类和Part成员内部类 public class Computer { private String name = "计算机"; public String getName() { return name; } public void setName(Str 阅读全文
posted @ 2021-02-20 21:11 火鸡的呐喊 阅读(48) 评论(0) 推荐(0)
摘要: // a包 public class Student{ public void eat(){ System.out.println("吃饭"); super.action(); } private void exam(){ System.out.println("学生在考试"); } protect 阅读全文
posted @ 2021-02-19 22:20 火鸡的呐喊 阅读(56) 评论(0) 推荐(0)
摘要: // 父类 1包中 public class Computer { private String name = "计算机"; public String getName() { return name; } public void setName(String name) { this.name = 阅读全文
posted @ 2021-02-19 21:46 火鸡的呐喊 阅读(246) 评论(0) 推荐(0)
摘要: // 接口文件1 public interface animalAction { // 属性都是public static final int a = 1; // 没有构造函数不能被new // 方法都是public abstract 可省略 void eat(); void drink(); vo 阅读全文
posted @ 2021-02-16 20:10 火鸡的呐喊 阅读(28) 评论(0) 推荐(0)
摘要: package com.moxi.wc; /** * @author Mr.Wang * @version 1.0 * @since 1.8 */ public class DemoAbstract { public static void main(String[] args) { // Demo 阅读全文
posted @ 2021-02-16 14:15 火鸡的呐喊 阅读(36) 评论(0) 推荐(0)
摘要: package com.moxi.wc; import static java.lang.Math.random; /** * @author Mr.Wang * @version 1.0 * @since 1.8 */ public class StaticDemo { public static 阅读全文
posted @ 2021-02-16 11:23 火鸡的呐喊 阅读(30) 评论(0) 推荐(0)
摘要: package com.moxi.wc; /** * @author Mr.Wang * @version 1.0 * @since 1.8 */ public class Instan { // 一个关键词instanceof public static void main(String[] ar 阅读全文
posted @ 2021-02-16 11:03 火鸡的呐喊 阅读(35) 评论(0) 推荐(0)