Skip to content

Commit 878c76b

Browse files
committed
Modified and BankAccount Package.
1 parent 6763ff3 commit 878c76b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Problems/src/Bank_Account/TestBankAccount.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
* On: 16-Jun-2014 At: 11:04 PM
99
*
1010
* Create a class named TestBankAccount whose main() method declares four BankAccount objects. Call a getData()
11-
* method three times. Within the method, prompt a user for values for each field for a BankAccount, and return a
11+
* method three times.
12+
* Within the method, prompt a user for values for each field for a BankAccount,
13+
* and return a
1214
* BankAccount object to the main() method where it is assigned to one of main()’s BankAccount objects. Do not
1315
* prompt the user for values for the fourth BankAccount object, but let it continue to hold the default values.
1416
* Then, in main(), pass each BankAccount object in turn to a showValues() method that displays the data, calls
@@ -26,8 +28,5 @@ public static void main(String[] args)
2628
}
2729
public void getData()
2830
{
29-
Scanner enter = new Scanner(System.in);
30-
System.out.print("Enter account number");
31-
BankAccount.setAccountNumber(enter.nextInt());
3231
}
3332
}

0 commit comments

Comments
 (0)