-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.java
More file actions
38 lines (37 loc) · 1.14 KB
/
Student.java
File metadata and controls
38 lines (37 loc) · 1.14 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
package day1;
public class Student {
String StdName;
int RegNum;
String Branch;
double Percentage;
public static void main(String[] args) {
// TODO Auto-generated method stub
Student S1 =new Student();
S1.StdName="Alekhya";
S1.RegNum=76;
S1.Branch="CSM";
S1.Percentage=77.9;
System.out.println("Student Name: "+S1.StdName);
System.out.println("Register Number: "+S1.RegNum);
System.out.println("Branch : "+S1.Branch);
System.out.println("Percentage : "+S1.Percentage);
Student S2 = new Student();
S2.StdName="Supriyaa";
S2.RegNum=05;
S2.Branch="CSE";
S2.Percentage=98;
System.out.println("Student Name: "+S2.StdName);
System.out.println("Register Number: "+S2.RegNum);
System.out.println("Branch : "+S2.Branch);
System.out.println("Percentage : "+S2.Percentage);
Student S3=new Student();
S3.StdName="Shameem";
S3.RegNum=89;
S3.Branch="CSM";
S3.Percentage=78.8664;
System.out.println("Student Name: "+S3.StdName);
System.out.println("Register Number: "+S3.RegNum);
System.out.println("Branch : "+S3.Branch);
System.out.println("Percentage : "+S3.Percentage);
}
}