摘要: 1. ctrl + shift + n: 打开工程中的文件,目的是打开当前工程下任意目录的文件。2. ctrl + j: 输出模板3. ctrl + b: 跳到变量申明处4. ctrl + alt + T: 围绕包裹代码(包括zencoding的Wrap with Abbreviation)5. c 阅读全文
posted @ 2021-11-26 13:23 小风扇呜呜呜 阅读(85) 评论(0) 推荐(0)
摘要: package com.daxing_02;public abstract class Animal { public abstract void eat();} package com.daxing_02;public class Operator { public void uesAnimal( 阅读全文
posted @ 2021-11-25 15:08 小风扇呜呜呜 阅读(39) 评论(0) 推荐(0)
摘要: package com.daxing_01;public class Cat { public void eat() { System.out.println("猫儿爱吃鱼!"); }} package com.daxing_01;//操作类public class CatOperator { pu 阅读全文
posted @ 2021-11-24 10:29 小风扇呜呜呜 阅读(31) 评论(0) 推荐(0)
摘要: 接口类: package com.daxing_02;/*Inter接口名接口中的成员默认为常量,接口没有构造方法,因为接口主要是对行为进行抽象,默认继承自父类Object类成员方法默认修饰符public abstract*/public interface Inter { //接口中的成员变量默认 阅读全文
posted @ 2021-11-23 15:39 小风扇呜呜呜 阅读(42) 评论(0) 推荐(0)
摘要: package com.daxing_01;public class Cat implements Jumpping { @Override public void jump() { System.out.println("猫可以跳高!"); }} package com.daxing_01;pub 阅读全文
posted @ 2021-11-23 10:26 小风扇呜呜呜 阅读(39) 评论(0) 推荐(0)
摘要: package com.itheima_03;//抽象类public abstract class Animal { //抽象类中的成员变量可以是变量也可以是常量 private int age = 20; private final String city = "西安";//final是常量 // 阅读全文
posted @ 2021-11-23 09:43 小风扇呜呜呜 阅读(22) 评论(0) 推荐(0)
摘要: package com.itheima_04;public class Animal { public void eat() { System.out.println("动物吃东西!"); }} package com.itheima_04;public class AnimalDemo { pub 阅读全文
posted @ 2021-11-20 10:32 小风扇呜呜呜 阅读(28) 评论(0) 推荐(0)
摘要: package com.itheima_01;//测试类public class StaticDemo { public static void main(String[] args) { //只需要给一次university的值就好了,全部都能用 Student.university = "西安电 阅读全文
posted @ 2021-11-19 16:30 小风扇呜呜呜 阅读(22) 评论(0) 推荐(0)
摘要: package com.daxing;//学生管理系统import java.util.ArrayList;import java.util.Scanner;public class StudentManager { public static void main(String[] args) { 阅读全文
posted @ 2021-11-14 19:23 小风扇呜呜呜 阅读(75) 评论(0) 推荐(0)
摘要: package fangfachongzai;public class demo03 { public static void main(String[] args) { //设计比较2个整数是否相同的方法,(byte,short,int,long) /* byte i=(byte) 10; byt 阅读全文
posted @ 2021-11-11 15:51 小风扇呜呜呜 阅读(46) 评论(0) 推荐(0)