package Account;
// Inputting and outputting floating-point numbers with Account objects.
import java.util.Scanner;
public class AccountTest {
public static void main(String args[]) {...
Type: Posts; User: xhunter
package Account;
// Inputting and outputting floating-point numbers with Account objects.
import java.util.Scanner;
public class AccountTest {
public static void main(String args[]) {...
Wouldn't it be enough to prompt the user that they're making either a deposit or a withdrawal? For example:
1. Prompt to deposit to Account 1
2. Prompt to deposit to Account 2
3. Prompt to...
public void debit(double amount) {
if (_balance < 0 || _balance < amount)
System.out.println("Amount withdrawn is greater than current balance");
else
_balance -= amount;
}
You...