-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
37 lines (24 loc) · 941 Bytes
/
Copy pathMain.java
File metadata and controls
37 lines (24 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package LearningPackage;
import collegeapp.Person;
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
for (String a : args
) {
System.out.println(a);
}
DemoClass demoClass = new DemoClass();
String season = demoClass.currentSeason();
System.out.println("Current season is : " + season);
Person person=new Person("Female","Julia", "Kovrigina");
person.setDOB(1983, 12,22);
person.setSSN("123-45-6789");
displayPerson(person);
}
static void displayPerson(Person person){
System.out.println("\n Here is information about " + person.getFname() + " " + person.getLname());
System.out.println("\t DOB: " + person.getDOB());
System.out.println("\t Gender: " + person.getGender());
System.out.println("\t SSN: " + person.getSSN());
}
}