-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicInfo.java
More file actions
33 lines (19 loc) · 851 Bytes
/
Copy pathBasicInfo.java
File metadata and controls
33 lines (19 loc) · 851 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
import java.util.Scanner;
public class BasicInfo {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter your full name: ");
String FullName = scanner.nextLine();
System.out.print("Enter your email address: ");
String EmailAddress = scanner.nextLine();
System.out.print("Enter your contact number: ");
String ContactNumber = scanner.nextLine();
System.out.print("Enter your home address: ");
String HomeAddress = scanner.nextLine();
System.out.println("\nFull Name: " + FullName);
System.out.println("Email Address: " + EmailAddress);
System.out.println("Contact Number: " + ContactNumber);
System.out.println("Home Address: " + HomeAddress);
scanner.close();
}
}