MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / getData

Method getData

Programs/eduEmpDb.java:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 // publication
16 public String subject, publication;
17 public void getData() {
18 System.out.println("Enter employee details: ");
19 System.out.println("Enter name: ");
20 name = sc.nextLine();
21 System.out.println("Enter employee id: ");
22 emp_id = sc.nextInt();
23 System.out.println("Enter subject: ");
24 subject = sc.nextLine();
25 System.out.println("Enter publication: ");
26 publication = sc.nextLine();
27 }
28 public void displayData() {
29 System.out.println("Displaying employee details: ");
30 System.out.println("Name: " + name);

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected