MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day24/code/day24_Thread/src/cn/itcast_04/StudentDemo.java:40–53  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

38 */
39public class StudentDemo {
40 public static void main(String[] args) {
41 // ����һ��ѧ����Դ
42 Student s = new Student();
43
44 // �����̶߳���
45 SetThread st = new SetThread(s);
46 GetThread gt = new GetThread(s);
47
48 Thread t1 = new Thread(st);
49 Thread t2 = new Thread(gt);
50
51 t1.start();
52 t2.start();
53 }
54}

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected