-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojectA.java
More file actions
31 lines (25 loc) · 1.21 KB
/
Copy pathprojectA.java
File metadata and controls
31 lines (25 loc) · 1.21 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
import java.util.Scanner;
public class projectA {
public static void main(String[] args) throws InterruptedException {
Scanner inputBuffObj = new Scanner(System.in);
int maxNoOfFeedback = 5;
boolean KeepRunning = true;
String[] customerfeedbacks = new String[maxNoOfFeedback];
customerfeedbacks[0] = "This is the 1st feedback";
customerfeedbacks[1] = "This is the 2st feedback";
customerfeedbacks[2] = "This is the 3st feedback";
customerfeedbacks[3] = "This is the 4st feedback";
customerfeedbacks[4] = "This is the 5st feedback";
System.out.println(customerfeedbacks[0]);
System.out.println(customerfeedbacks[1]);
System.out.println(customerfeedbacks[2]);
System.out.println(customerfeedbacks[3]);
System.out.println(customerfeedbacks[4]);
customerfeedbacks[2] = "This is the MODIFIED feedback";
System.out.println(customerfeedbacks[2]);
for (int customerNoOfFeedbacks = 0;customerNoOfFeedbacks < maxNoOfFeedback; customerNoOfFeedbacks++) {
System.out.print("please enter you feedback : ");
customerfeedbacks[customerNoOfFeedbacks] = inputBuffObj.nextLine();
}
}
}