Search:

Type: Posts; User: UM68

Search: Search took 0.24 seconds.

  1. Replies
    9
    Views
    356

    Re: Cannot find symbol errors

    Yes, it did compile when the following statement was placed in the Account class:




    System.out.println("Account Owner2 Balance with interest:" +

    owner[1].add_monthly_interest());
  2. Replies
    9
    Views
    356

    Re: Cannot find symbol errors

    I tried putting a add_monthly_interest() method in the Account class. Declared it public so it could be inherited by the SavingsAccount class. I tried to make it so the method does nothing in the...
  3. Replies
    9
    Views
    356

    Re: Cannot find symbol errors

    I'm able to compile and run the program but I think it runs for the wrong reasons. The add_monthly_interest() method for calculating the balance with interest was suppose to take place in the...
  4. Replies
    9
    Views
    356

    Re: Cannot find symbol errors

    System.println("Error. Balance not enough to cover withdraw.");




    and
  5. Replies
    9
    Views
    356

    Cannot find symbol errors

    Getting "cannot find symbol" errors at 66 and 116. I don't see any spelling errors and the variables are declared, so not sure why I'm getting the errors.

    This program prints out: current account...
  6. Thread: ; expected error

    by UM68
    Replies
    13
    Views
    332

    Re: ; expected error

    I did post the exact error message and the line which it applies to. The exact error is: "java:40:error: ; expected"

    I have a ; there, so I'm not sure why it's flagging that code saying it's not...
  7. Thread: ; expected error

    by UM68
    Replies
    13
    Views
    332

    Re: ; expected error

    Still getting the error. I made the changes on the lines you pointed out, eventhough they weren't referenced in any of the errors. Still getting "java:40:error: ; expected". I concatenated and...
  8. Thread: ; expected error

    by UM68
    Replies
    13
    Views
    332

    Re: ; expected error

    I modified the println statements




    //Display the amount contained in the case selected by user
    //Display the amount contained in the case selected by user
    System.out.println("The case...
  9. Thread: ; expected error

    by UM68
    Replies
    13
    Views
    332

    Re: ; expected error

    I just tried to compile again. That's the only error received.
  10. Thread: ; expected error

    by UM68
    Replies
    13
    Views
    332

    Re: ; expected error

    I added comments codes for the referenced line:





    //Display the amount contained in the case selected by user
    System.out.println("The case you selected contains: " + val(arr[position]));
  11. Thread: ; expected error

    by UM68
    Replies
    13
    Views
    332

    ; expected error

    I'm getting the following error when trying to compile my code: "java:38:error: ; expected"

    I checked the line of the error referenced and I do have an ;




    import java.util.Random;
    import...
Results 1 to 11 of 11