Search:

Type: Posts; User: sternfox

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: A Loop statement and a switch statement issue

    Okay, I discovered that the issue is with the following:

    we are asked to use the following code to generate a unique customerID number.


    long customerID =...
  2. [SOLVED] Re: A Loop statement and a switch statement issue

    Here posting the entire process:


    *** ***
    *** Welcome to Cash for Metals Calculator!!! ***
    *** ***
    1. Create Personal Customer
    2. Create Commercial Customer
    3. Record...
  3. [SOLVED] Re: A Loop statement and a switch statement issue

    So the following is correct because account 123 does not exist.

    *** ***
    *** Welcome to Cash for Metals Calculator!!! ***
    *** ***
    1. Create Personal Customer
    2. Create...
  4. [SOLVED] Re: A Loop statement and a switch statement issue

    ok if I remove the if (trans != null) error



    public static Transaction recordTransaction(){

    System.out.println("Enter the customer ID to create the transaction > ");

    ...
  5. [SOLVED] Re: A Loop statement and a switch statement issue

    The problem that i am trying to solve in this situation is the following:
    the customer id is entered, and if the customer id is not matched in the array, the error read out in case 3 is generated...
  6. [SOLVED] Re: A Loop statement and a switch statement issue

    This is the part that is tripping me up. In addition I have the following helper method. Could I use it in this situation?

    // Helper method to determine if a customer exists
    public static...
  7. [SOLVED] A Loop statement and a switch statement issue

    I was given the following code by my prof.



    public static void main(String[] args) {

    Customer customer;
    Transaction transaction;
    double withdrawalAmount...
Results 1 to 7 of 7