Main.java 407 B

12345678910111213141516171819
  1. package J20250731.demo01_cooker_foodie;
  2. /**
  3. * @author WanJl
  4. * @version 1.0
  5. * @title Main
  6. * @description
  7. * @create 2025/7/31
  8. */
  9. public class Main {
  10. public static void main(String[] args) {
  11. Cooker02 c=new Cooker02();
  12. Foodie02 f=new Foodie02();
  13. Thread t1=new Thread(c,"线程1");
  14. //Thread t2=new Thread(f,"线程2");
  15. t1.start();
  16. //t2.start();
  17. }
  18. }