-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSecondJavaApp.java
More file actions
26 lines (22 loc) · 875 Bytes
/
SecondJavaApp.java
File metadata and controls
26 lines (22 loc) · 875 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
public class SecondJavaApp {
int empId;
String empName;
Double empSalary;
public SecondJavaApp(int empId, String empName, double empSalary) {
this.empId = empId;
this.empName = empName;
this.empSalary = empSalary;
System.out.println("SecondJavaApp.SecondJavaApp()");
}
public void printEmployeeDetails() {
System.out.println("==================================");
System.out.println("Employee Id : " + this.empId);
System.out.println("Employee Name : " + this.empName);
System.out.println("Employee Salary : " + this.empSalary);
System.out.println("==================================");
}
public static void main(String args[]) {
SecondJavaApp secondJavaApp = new SecondJavaApp(504, "Srikanth Y", 50000);
secondJavaApp.printEmployeeDetails();
}
}