-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCollege.java
More file actions
56 lines (36 loc) · 1.91 KB
/
College.java
File metadata and controls
56 lines (36 loc) · 1.91 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
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class College{
public static void main(String[] args)
throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
Student s1 = new Student();
System.out.println("\n\t\t********** Plzz Enterd Student Details **********");
System.out.print("Enter ID No : \t");
s1.sid = Integer.parseInt(br.readLine());
System.out.print("Enter UR Name : \t");
s1.sname = br.readLine();
System.out.print("Enter UR Course : \t");
s1.course = br.readLine();
System.out.print("Enter UR fee : \t");
s1.fee = Double.parseDouble(br.readLine());
System.out.print("Enter UR Mobile No : \t");
s1.mobile = Long.parseLong(br.readLine());
System.out.print("Enter UR Email : \t");
s1.email = br.readLine();
System.out.print("Enter UR gender : \t");
s1.gender = br.readLine().charAt(0);
System.out.print("Is UR Course Competed? : \t");
s1.courseComleted = Boolean.parseBoolean(br.readLine());
System.out.println("\n\t\t********** Student Details as u Entered **********");
System.out.println("ID : "+s1.sid);
System.out.println("Name : "+s1.sname);
System.out.println("Course : "+s1.course);
System.out.println("Fee : "+s1.fee);
System.out.println("Mobile : "+s1.mobile);
System.out.println("Email : "+s1.email);
System.out.println("Gender : "+s1.gender);
System.out.println("Is UR Couse Completed? : "+s1.courseComleted);
}
}