can u give me some example of withdrawal money program using array to store ten information of user.

including
the attributes:
(i) Name of the depositor
(ii) Account number
(iii) Type of account
(iv) Balance amount
And the methods:
(i) Deposit
(ii) Withdraw
(iii) Display the balance

Sure! Here's an example of a withdrawal money program using an array to store ten information of users in Java:

```java
import java.util.Scanner;

public class BankAccount {
private String name;
private int accountNumber;
private String accountType;
private double balance;

public BankAccount(String name, int accountNumber, String accountType, double balance) {
this.name = name;
this.accountNumber = accountNumber;
this.accountType = accountType;
this.balance = balance;
}

public void deposit(double amount) {
balance += amount;
System.out.println("Deposit successful!");
}

public void withdraw(double amount) {
if (amount > balance) {
System.out.println("Insufficient balance!");
} else {
balance -= amount;
System.out.println("Withdrawal successful!");
}
}

public void displayBalance() {
System.out.println("Account balance: $" + balance);
}

public static void main(String[] args) {
BankAccount[] bankAccounts = new BankAccount[10];
Scanner scanner = new Scanner(System.in);

// Initialize the bank accounts
bankAccounts[0] = new BankAccount("John Doe", 1234567890, "Savings", 500.0);
bankAccounts[1] = new BankAccount("Jane Smith", 9876543210, "Checking", 1500.0);
// Add more bank accounts as needed

System.out.println("Enter account number (0-9):");
int accountNumber = scanner.nextInt();

if (accountNumber < 0 || accountNumber > 9) {
System.out.println("Invalid account number!");
return;
}

BankAccount currentAccount = bankAccounts[accountNumber];

System.out.println("What would you like to do?\n1. Deposit\n2. Withdraw\n3. Display balance");
int choice = scanner.nextInt();

switch (choice) {
case 1:
System.out.println("Enter amount to deposit:");
double depositAmount = scanner.nextDouble();
currentAccount.deposit(depositAmount);
break;
case 2:
System.out.println("Enter amount to withdraw:");
double withdrawalAmount = scanner.nextDouble();
currentAccount.withdraw(withdrawalAmount);
break;
case 3:
currentAccount.displayBalance();
break;
default:
System.out.println("Invalid choice!");
break;
}
}
}
```

In this example, we have created a `BankAccount` class with the given attributes and methods. We use an array of `BankAccount` objects to store the information of ten users.

To use the program, it prompts the user to enter an account number from 0 to 9. Then, the user can choose from three options: deposit, withdraw, or display the balance. Based on the user's choice, the corresponding method is executed on the selected bank account.

Please note that this is a simplified example and does not include error handling or additional functionalities, such as multiple deposits or withdrawals.