-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent_details.java
More file actions
39 lines (24 loc) · 1.08 KB
/
Copy pathstudent_details.java
File metadata and controls
39 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
28
29
30
31
32
33
34
35
36
37
38
39
import java.util.Scanner;
public class student_details{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("-----------Student Details----------");
System.out.println("Enter Your ID :");
int id = s.nextInt();
// System.out.println(id);
System.out.println("Enter Your name :");
String name = s.next();
// System.out.println("My name is : " + name);
System.out.println("Enter Your Department :");
String department = s.next();
// System.out.println(department);
System.out.println("Enter Your Location :");
String location = s.next();
// System.out.println(location);
System.out.println("Enter Your Mobile Number :");
int mn = s.nextInt();
// System.out.println(mn);
System.out.println(id + "\n "+ name + "\n "+ department + "\n "+ location + "\n "+ mn);
s.close();
}
}