摘要:
线程篇 抽象类中可以有抽象方法也可以有具体的方法,实现类中只能有具体的方法。 我们写的java代码其实就是一个可运行的程序,一旦运行就是进程了。里面的main()方法其实就是一个线程。像我们的QQ,也是一串代码,没运行时是一个程序,运行后就是进程了,里面的多种方法就是线程。 public class 阅读全文
摘要:
java方法 public static void main(String[] args) { int max = max(10, 20); System.out.println(max); } //比大小 public static int max(int num1,int num2){ int 阅读全文
摘要:
python score=int (input("请输入成绩")) if score<80 and score>=60: print("及格") elif score>=80 and score<90: print("良好") elif score>=90 and score<=100: print 阅读全文
摘要:
java 流程结构 public class Demo1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("使用next方式接收"); if 阅读全文