Search:

Type: Posts; User: J0k3r

Search: Search took 0.09 seconds.

  1. Replies
    15
    Views
    1,813

    Re: Getting user input and storing it into an array

    Slowly but surely. Thank you for your patience.
  2. Replies
    15
    Views
    1,813

    Re: Getting user input and storing it into an array

    clients is a String array.
    Once I do an int parse for account balance it should work
  3. Replies
    15
    Views
    1,813

    Re: Getting user input and storing it into an array

    Neither of my classes have an add method in them. I apologize but I dont understand your question of which class is my clients object. Are you asking me what class is my clientsList under? If so that...
  4. Replies
    15
    Views
    1,813

    Re: Getting user input and storing it into an array

    This is all of my code as it is right now.


    Account Class
    public class Account implements IAccount{
    private int accountNumber;
    private double balance;
    private static int numberOfAccounts...
  5. Replies
    15
    Views
    1,813

    Re: Getting user input and storing it into an array

    The way I had it originally would give me an error based on clients[1].add(reader.nextLine()); the error was "The method add(String) was undefined for type String". the .add portion is what causes...
  6. Replies
    15
    Views
    1,813

    Re: Getting user input and storing it into an array

    I wanted question to pop up using a simple print statment. Receiveing what the user wrote and storing it into clients.
    for example:
    Enter the clients name:
    user inputs: John
    clients index spot...
  7. Replies
    15
    Views
    1,813

    Re: Getting user input and storing it into an array

    How to go about getting the user input in that order into an array? I thought the way I was going about it was going to work however it didn't. I declared an array list at the top of my program so I...
  8. Replies
    15
    Views
    1,813

    Getting user input and storing it into an array

    What I am trying to do is have the user get a prompt "Enter in a name: " when they enter in the name it is then added to an array list. After the name is added in the array list the user is then...
Results 1 to 8 of 9