Search:

Type: Posts; User: ProgrammerNoobE

Search: Search took 0.24 seconds.

  1. Replies
    9
    Views
    1,178

    Re: What is wrong with my ArrayList?

    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)){
    ...
  2. Replies
    9
    Views
    1,178

    Re: What is wrong with my ArrayList?

    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.
  3. Replies
    9
    Views
    1,178

    Re: What is wrong with my ArrayList?

    [/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...
  4. Replies
    9
    Views
    1,178

    Re: What is wrong with my ArrayList?

    My program looks now like this:



    import java.util.Scanner;
    import java.util.ArrayList;

    class Bank{
    double balance;
    //Account account;
  5. Replies
    9
    Views
    1,178

    What is wrong with my ArrayList?

    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...
Results 1 to 5 of 5