forked from vabburi82/Java8Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomers.java
More file actions
32 lines (27 loc) · 915 Bytes
/
Customers.java
File metadata and controls
32 lines (27 loc) · 915 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
package example1;
import java.util.Scanner;
public class Customers
{
public static void main(String[] args)
{
int i, j;
@SuppressWarnings("resource")
Scanner input = new Scanner(System.in);
System.out.print("\nEnter No. of customers : ");
j = input.nextInt();
for (i = 0; i < j; i++)
{
System.out.println("\nEnter Customer [ " + (i + 1) + " ] details ::");
System.out.println("Enter the name: ");
String name = input.nextLine();
System.out.println("Enter the Email: ");
String Email = input.nextLine();
System.out.println("Enter the PhoneNo: ");
String phone = input.nextLine();
System.out.println("User Details Entered are ::\n");
System.out.println("User Name :: "+ name);
System.out.println("User Phone :: "+ phone);
System.out.println("User Email :: "+ Email);
}
}
}