Search:

Type: Posts; User: javapenguin

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    1,229

    Re: JAVA HELP PLS!

    Also, can the user buy and sell many times?

    If so, I have an idea.

    Preferably use an ArrayList, though you could use a Vector I suppose.

    Have an ArrayList of products.

    Say you start out...
  2. Replies
    3
    Views
    1,229

    Re: JAVA HELP PLS!

    Not sure if you're using console or JOptionPane, but

    use a char

    char c = 'c';
    String str = "";

    System.out.println("Enter a Y for yes or N for no");
    str = console.nextLine();
Results 1 to 2 of 2