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

Method getDetails

Programs/eduInstitute.java:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 public int expYears;
35 public String subject;
36 void getDetails() {
37 System.out.println("Enter name: ");
38 name = sc.nextLine();
39 System.out.println("Enter id: ");
40 id = sc.nextInt();
41 System.out.println("Enter years of experience: ");
42 expYears = sc.nextInt();
43 System.out.println("Enter subject: ");
44 subject = sc.next();
45 }
46 void display() {
47 System.out.println("Displaying teacher details: ");
48 System.out.println("Name: " + name);

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected