-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeststudents.java
More file actions
39 lines (17 loc) · 814 Bytes
/
Teststudents.java
File metadata and controls
39 lines (17 loc) · 814 Bytes
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
package com.mycompany.box;
import java.util.Scanner;
public class Teststudents {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter Your Name: ");
String name = scan.nextLine();
System.out.println("Enter Your id Number : ");
int id = scan.nextInt();
Student231 s1 = new Student231(name,id);
s1.Displayinfo();
// Scanner.close();
Student231 s2 = new Student231("Arabi", 23154);
s2.Displayinfo();
System.out.println("total Student Count :" +Student231.getTotalStudents());
}
}