Search:

Type: Posts; User: lonnieg1214

Search: Search took 0.13 seconds.

  1. Re: Cant seem to get my loop to work after catching an exception.

    here is what i changed it to which works but isn't ideal from a user's standpoint:


    public static void collectInfo()
    {

    double firstW=0;
    double secondW=0;
    double payRate =0;
    double...
  2. Re: Cant seem to get my loop to work after catching an exception.

    is it possible to override anything to get the response i want? maybe overriding the error so it doesn't keep the bad data? that explains why it keeps looping
  3. Re: Cant seem to get my loop to work after catching an exception.

    Enter hours received for the first week of your paycheck.
    If you have overtime, just add it to this for example: 3 hours of overtime is 43 hours that week
    h
    Oops...

    this is how it would go but...
  4. Re: Cant seem to get my loop to work after catching an exception.

    i tried what Greg did just now but it goes into an eternal loop

    --- Update ---

    right before i tried Greg's solution, i tried restarting the method when the exception occurred. that worked but...
  5. Re: Cant seem to get my loop to work after catching an exception.

    Ahh ok I keep getting confused on the loop so I start off with it being true and I want it to remain true if the user puts in the right info. But when they cause an exception, I changed the true to...
  6. Re: Cant seem to get my loop to work after catching an exception.

    The way that the code is setup now it won't loop at all I wanted it to loop back to give the user another chance to put in the right info.
    The ! Should make it false right? And since firstWGood...
  7. Re: Cant seem to get my loop to work after catching an exception.

    Sorry i'm new to all of this.
  8. Cant seem to get my loop to work after catching an exception.

    Sorry about that here's the edit:

    I am trying to get user inputs (double types). so when i get a letter instead of a double i get an exception even though i had a while loop checking for this. so...
  9. Replies
    3
    Views
    1,296

    Re: Need java mentor

    Sorry i didn't mean to hijack. well i have learned a lot from the online class as well as me being in school (the online class taught me more about coding than my school) technically i probably have...
  10. Replies
    3
    Views
    1,296

    Need java mentor

    i am looking for a mentor to help me with my first java application and hopefully one for android. I am in between schools and i just finished the intro to programming on udacity.com and i am looking...
Results 1 to 10 of 10