GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java-programs/Resume/ResumeMain.java at main · IntScription/java-programs Expand file tree/ Copy pathResumeMain.javaMore file actions 77 lines (71 loc) · 2 KB / Copy pathResumeMain.javaFile metadata and controls77 lines (71 loc) · 2 KB 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 /* Write a program to generate the resume. Create 2 Java classes Teacher (data: personal information, qualification, experience, achievements) and Student (data: personal information, result, discipline) which implements the java interface Resume with the method biodata(). */ package Resume; import java.util.*; interface Resume { void biodata(); } class Teacher implements Resume { private String name; private String dob; private String qualification; private int experience; private String achievements; public void biodata() { Scanner sc=new Scanner(System.in); System.out.println("Enter name"); name=sc.nextLine(); System.out.println("Enter dob in dd-mm-yyyy"); dob=sc.next(); System.out.println("Enter Qualification"); qualification=sc.next(); System.out.println("Enter Experience in years"); experience=sc.nextInt(); System.out.println("Enter Achievements"); achievements=sc.next(); } public void putData() { System.out.println("Name: "+name); System.out.println("D.O.B: "+dob); System.out.println("Qualification: "+qualification); System.out.println("Experience: "+experience); System.out.println("Achievements: "+achievements); } } class Student implements Resume { private String name; private String dob; private String result; private String discipline; public void biodata() { Scanner sc=new Scanner(System.in); System.out.println("Enter name"); name=sc.nextLine(); System.out.println("Enter dob in dd-mm-yyyy"); dob=sc.nextLine(); System.out.println("Enter result"); result=sc.nextLine(); System.out.println("Enter discipline"); discipline=sc.nextLine(); sc.close(); } public void putData() { System.out.println("Name: "+name); System.out.println("D.O.B: "+dob); System.out.println("Result: "+result); System.out.println("Discipline: "+discipline); } } public class ResumeMain { public static void main(String[] args) { Teacher t1=new Teacher(); t1.biodata(); t1.putData(); Student s1=new Student(); s1.biodata(); s1.putData(); } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |