Question: HI Please help me solve the question. If you code can run, i will upvote you Prevent duplicated customer id entry by using Sorting method

HI Please help me solve the question.

If you code can run, i will upvote you

Prevent duplicated customer id entry by using Sorting method

HI Please help me solve the question. If you code can run,

i will upvote you Prevent duplicated customer id entry by using Sorting

Java language Hi. I am confusing about how to prevent duplicated customer ID entry in Java by using sorting method. This is part of my code : public Customer cust; public int i = 0; public Customer custList[] = new CustomerInfo (10); private void addRecBTNActionPerformedljava.awt.event.ActionEvent evt) { // TODO add your handling code here: String custID = custIDTF.getText(); String custName = custNameTF.getText(); String custAge = custAge TF:getText(); = ?????????//if the customer id alrdy exists JOptionPane showMessage Dialog(null, "Customer ID already exists"); ??????????//else if the customer id not exist info = new CustomerInfo(custin, custName, custAge); = custList[i] = info; i++; JOptionPane.show MessageDialog(null,"Customer information added successfully!"); } } The yellow highlight is the code you need to type to prevent duplicated customer ID entry. You can use any method to solve

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!