123jgh

导航

 

2022年10月13日

摘要: 团队文件示例.rpteam 元件库文件示例.rplib 原型导出文件示例(网页文件).html 原型文件示例.rp 项目中,主要设置的内容为全局变量;布局中的操作,多数在工具栏中都有 阅读全文
posted @ 2022-10-13 15:14 江江要努力 阅读(25) 评论(0) 推荐(0)
 
摘要: public class Test1 { public static void main(String[] args) { int a = 2; int b = 0; //选择该代码(sout)后 Ctrl + Alt + T 即可选择代码块 try { System.out.println(a/b 阅读全文
posted @ 2022-10-13 10:39 江江要努力 阅读(22) 评论(0) 推荐(0)
 
摘要: import java.sql.SQLOutput;public class Test { public static void main(String[] args) { //方法中处理的了异常,new Test().test(1,0);一行代码就够了 try { new Test().test( 阅读全文
posted @ 2022-10-13 10:38 江江要努力 阅读(20) 评论(0) 推荐(0)
 
摘要: //自定义的异常类public class MyException extends Exception{//双击shift:搜索 //传递数字>10 private int detail; public MyException(int a){ this.detail = a; } //toStrin 阅读全文
posted @ 2022-10-13 10:37 江江要努力 阅读(14) 评论(0) 推荐(0)
 
摘要: /*接口 只有规范 自己无法写方法~专业约束 约束和实现分离 面向接口编程 抽象类 具体实现和规范(抽象方法)都有 普通类 只有具体实现 *///接口不能被实例化, 接口中没有构造方法//interface 定义的关键字,接口都需要有实现类public interface UserService { 阅读全文
posted @ 2022-10-13 10:34 江江要努力 阅读(18) 评论(0) 推荐(0)
 
摘要: //abstract 抽象类 (提高开发效率)//extends 单继承 接口(可以实现多继承)public abstract class Action { //约束 有人帮我们实现方法 //abstract 抽象方法(只有方法名字,没有方法的实现) public abstract void dos 阅读全文
posted @ 2022-10-13 10:33 江江要努力 阅读(42) 评论(0) 推荐(0)
 
摘要: public class Person { //2.赋初值 { //代码块(匿名代码块) System.out.println("匿名代码块"); } //1只执行一次 static{ //静态代码块 System.out.println("静态代码块"); } //3构造器 public Pers 阅读全文
posted @ 2022-10-13 10:32 江江要努力 阅读(24) 评论(0) 推荐(0)
 
摘要: public class Person1 { public void run(){ System.out.println("run"); }} public class Student1 extends Person1{ public void go(){ System.out.println("g 阅读全文
posted @ 2022-10-13 10:30 江江要努力 阅读(14) 评论(0) 推荐(0)
 
摘要: public class Person { public void run(){ System.out.println("father"); }}/*多态注意事项:1.多态是方法的多态,属性没有多态2.父类和子类有联系 类型转换异常(ClassCastException)3.存在条件:继承关系,方法 阅读全文
posted @ 2022-10-13 10:14 江江要努力 阅读(29) 评论(0) 推荐(0)
 
摘要: //重写都是方法的重写,和属性无关public class B { public void test() { System.out.println("B=>test()"); } /* public static void test() { System.out.println("B=>test() 阅读全文
posted @ 2022-10-13 10:01 江江要努力 阅读(22) 评论(0) 推荐(0)