# include<stdio.h> //编译预处理指令
int main(){ //定义主函数int max (int x,int y);int a,b ,m; scanf("%d,%d",&a,&b);m max( a, b);printf("max is %d \n ",m);return 0 ;}
int max(int x,int y){int c ;if (x>y){cx;}else{c y…
/*** author Alina* date 2021年12月22日 12:17 上午**/
class Student{String name;String sex;boolean flag false;}
class Product implements Runnable{Student s ;Product(Student s ){this.s s;}public void run(){int x 0;//通过奇数偶数进行赋值while(true){synchro…
线程池:1.出现版本:JDK1.52.包:java.util.concurrent3.Executors类 -->工厂类1.三个静态方法:static ExecutorService newCachedThreadPool() 创建新的线程池对象Creates a thread pool that creates new threads as needed, …
/*** author Alina* date 2021年12月26日 1:48 上午*/
public class SingleLanhan {private SingleLanhan() { }private static SingleLanhan s null;public static SingleLanhan getInstance(){if (s null){synchronized (SingleLanhan.class){if (s null){s new SingleL…