Search:

Type: Posts; User: Andyandhisboard

Search: Search took 0.12 seconds.

  1. Re: Quick question with throwing and catching an exception.

    eh I got it guys, it basically boils down to me being retarded. In order to throw an exception like that, I have to declare it at the beginning of the constructor that I'm going to throw and...
  2. Re: Quick question with throwing and catching an exception.

    Thanks much, I'm just confused with how it knows to throw the IdNumberException only if the if statement is true. For instance, if I have the following code, how does it know to throw an...
  3. Re: Quick question with throwing and catching an exception.

    The catch statement was there for the throw statement. I guess that's my main question, I understand how try...catch works, but im not 100% on how the throw works. I assumed that since there was an...
  4. Quick question with throwing and catching an exception.

    Hey guys, I'd first just like to thank in advance for anyone taking the time to help out. Basically, I'm working on a project, and what I have to do is make a class that descends from exception, and...
  5. string.equals(anotherString) Anything like this for doesn't equal?

    Hello, I'm just wondering if there is anything for something like string.notequal(anotherString). Basically, in my while loop, I want it to keep asking the size of the pizza they want if the input...
  6. Re: Counting Vowels and Consonants in a String.

    Thanks again :D

    I'm afraid I don't understand what happens when I compare c == " ". My guess would be maybe the space would represent any character that is a part of the string?

    Also, so if I...
  7. Re: Counting Vowels and Consonants in a String.

    Thanks man, now do you mind me asking, are you saying in my else...if for consonants I should set c == 'b' c == 'c' and so on and so forth for EVERY consonant? Also, how would I go about doing:
    ...
  8. Counting Vowels and Consonants in a String.

    Hello everyone, I am so close to achieving my goal with this program. I just can't seam to figure out where the for loop goes wrong and "mis-counts" the amount of consonants and vowels. Also, in the...
Results 1 to 8 of 8