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

Method getDetails

Programs/eduInstitute.java:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 public int year;
12 public String course;
13 void getDetails() {
14 System.out.println("Enter name: ");
15 name = sc.nextLine();
16 System.out.println("Enter id: ");
17 id = sc.nextInt();
18 System.out.println("Enter year: ");
19 year = sc.nextInt();
20 System.out.println("Enter course: ");
21 course = sc.next();
22 System.out.println();
23 }
24 void display() {
25 System.out.println("Displaying student details: ");
26 System.out.println("Name: " + name);

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected