-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnon_has1.java
More file actions
27 lines (24 loc) · 1.08 KB
/
Copy pathnon_has1.java
File metadata and controls
27 lines (24 loc) · 1.08 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
package function;
import java.util.Scanner;
public final class non_has1 {
void Student(int id,String name,String gender, float score1, float score2, float score3){
System.out.println("ID\tName\tGender\tScore1\tScore2\tScore3");
System.out.println(+id+"\t"+name+"\t"+gender+"\t"+score1+"\t"+score2+"\t"+score3);
}
public non_has1(){
int id;
String name,gender;
float score1,score2,score3;
Scanner objin = new Scanner(System.in);
System.out.print("Input ID :"); id=objin.nextInt();
System.out.print("Input Name :"); name=objin.next();
System.out.print("Input Gemder :"); gender=objin.next();
System.out.print("Input Score1 :"); score1=objin.nextFloat();
System.out.print("Input Score2 :"); score2=objin.nextFloat();
System.out.print("Input Score3 :"); score3=objin.nextFloat();
Student(id,name,gender,score1,score2,score3);
}
public static void main(String[] args) {
new non_has1();
}
}