I understand what you say, but I just don't know how it works, could you give me a hint?
what I have right now:
void enroll(String name){
if(account.equals(account)){
...
Type: Posts; User: ProgrammerNoobE
I understand what you say, but I just don't know how it works, could you give me a hint?
what I have right now:
void enroll(String name){
if(account.equals(account)){
...
I don't know what you mean. Could you explain it with an example? I'm not so familiair with english terms, because I'm from Holland.
[/COLOR]Your ArrayList holds accounts. Why are you passing a String into the contains() method?[/QUOTE]
I've put name in it, because when the user types a command like enroll "name" it should only...
My program looks now like this:
import java.util.Scanner;
import java.util.ArrayList;
class Bank{
double balance;
//Account account;
Pleas help me!
I have a problem with my ArrayList, I don't understand how the user input should be stored in the ArrayList and how I can print the ArrayList
my code:
import...