<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
public class BankAccount {
	private int balance = 0;

	public BankAccount(int balance) {
		this.balance = balance;
	}

	public int getBalance() {
		return balance;
	}

	@Override
	public String toString() {
		return "BankAccount [balance=" + balance + "]";
	}

	public BankAccount() {
	}

	public void deposit(int amount) {
		if (amount &lt; 0) {
			System.out.println("Negative deposits ignored.");
		}
		else {
			balance += amount;
		}
		
	}
}
</pre></body></html>