# Capgemini ADAPT 2022 Online Shopping A – Customer Array Solution using JAVA

In this post, we will try to give a solution to an important problem of Capgemini ADAPT 2022. The problem is Online Shopping A – JOLS-S3-L2-1-Customer Array.

However, the solutions are provided for learning purposes only. Candidates must submit their own code during attending the Sprints.

### Online Shopping A – JOLS-S3-L2-1-Customer Array Solution:

import java.util.Scanner;
public class Source {
public String customerArray[][] = new String[5][3];
public void createCustomer(String[][] array) {
this.customerArray = array;
}
public String[][] getCustomers() {
for (int i = 0; i < customerArray.length; i++) {
for (int j = 0; j < (customerArray.length – i – 1); j++) {
int id1 = Integer.parseInt(customerArray[j][0]);
int id2 = Integer.parseInt(customerArray[j + 1][0]);
if (id1 > id2) {
String temp[] = customerArray[j + 1];
customerArray[j + 1] = customerArray[j];
customerArray[j] = temp;
}
}
}
return customerArray;
}
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
String inputArray[][] = new String[5][3];
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 3; j++) {
inputArray[i][j] = scanner.nextLine();

}
}
Source obj = new Source();
obj.createCustomer(inputArray);
String result[][] = obj.getCustomers();
for (String[] cust : result) {
System.out.println(cust[0] + ” ” + cust[1] + ” ” + cust[2] + ”
“);
}
scanner.close();
}
}

Note: We could not get the problem statement yet. If you have the problem statement you can send us at – [email protected]. We will try to update the answers according to the problem statement.

### Top Companies + Batchwise Hiring Drive:

 TOP COMPANIES HIRING DRIVE BATCHWISE HIRING DRIVES

### ADAPT Different Coding Solutions:

1. Largest Array Solution – Click Here
2. Batsman & Bowler Solution – Click Here
3. Instruments Problem Solution – Click Here
4. Check Two Person Are Same – Click Here
7. Remove”X”inString Problem Solution – Click Here
8. Customer and Invoice ADAPT Problem Solution – Click Here
9. Book and Author Problem Solution – Click Here
10. Highest Feedback Problem Solution – Click Here
11. Registered Customer Problem Solution in Java – Click Here
12. Product of Digits Problem Solution – Click Here
13. Change Using Minimal Coins/Notes Solution in Java – Click Here

### Capgemini ADAPT Sprint 1 (Bus Reservation Solutions):

• 1. Capgemini ADAPT Sprint 1 Bus Reservation System – DisplayCustomerInAscendingOrder Problem Solution
• 2. Capgemini ADAPT Sprint 1 Bus Reservation System – DisplayCustomerByFirstName Problem Solution
• 3. Capgemini ADAPT Sprint 1 Bus Reservation System – SortByCustomerId Problem Solution
• 4. Capgemini ADAPT Sprint 1 Solution Java | LSAByCustomerName Problem Solution
• 5. Capgemini ADAPT Sprint 1 Case Study Solution Java | BSAByCustomerId Problem Solution

### Capgemini ADAPT Sprint 2 (Bus Reservation System):

• 1. Capgemini ADAPT Sprint 2 Case Study (Bus Reservation System) Solution | HAS-A-Relationship Solution Java
• 2. Capgemini ADAPT Sprint 2 Case Study (Bus Reservation System) Solution OOPs-Para-Constructor Java
• 3. Capgemini ADAPT Sprint 2 Bus Reservation System (CRUDOperations) Problem Solution

### Online Shopping A Solutions Using Java:

1. Capgemini ADAPT 2022 Online Shopping A – Display Products Solution using JAVA – Click Here
2. Capgemini ADAPT 2022 Online Shopping A – Products by Category Solution using JAVA – Click Here

Job Seeker 24 provides Off-Campus Drive Updates, Engineering Job Updates, IT Job Updates, Jobs for Freshers, Private Sector Jobs, Public Sector Jobs, various Educational Opportunities, etc.