Hello everyone, I am new to Java and attempting to write a program using an array. The program should ask for the name, number, and amount spent for 10 customers, it should then determine which customer spent the most and display that customers info.

This is what I have so far but I dont know how to have it find the max and then display ALL that customers info, any help is welcome.

O I am also trying to have the customer enter their phone number in the following format, xxx-xxx-xxxx (example: 100-897-9078) and then determine if the phone number has 10 digits. thanks again

{
//--------------------------------------------------------------
// This program is designed to award the highest spending
// customer of the day with a $100 dollar gift card, prompting
// the customer to enter their name, phone number, and amount
// spent on that day.
//--------------------------------------------------------------