|
static void | main (String[] args) |
|
Definition at line 15 of file question1a.java.
◆ main()
static void question1a.main |
( |
String[] | args | ) |
|
|
inlinestatic |
Definition at line 16 of file question1a.java.
16 {
17
18 Student[] cs0396 = new Student[2];
19
20
21 cs0396[0] = new Student();
22 cs0396[1] = new Student();
23
24 cs0396[0].name = "Kevin";
25 cs0396[0].id = 12345;
26 cs0396[1].name = "Haoyuan";
27 cs0396[1].id = 67890;
28
29 for (int i = 0; i < 2; ++i) {
30 System.out.println(cs0396[i].name + " " + cs0396[i].id);
31 }
32 }
The documentation for this class was generated from the following file: