Hi All,

I've searched this list and haven't found another way to do this, so I'm
just curious to know if this is the best way to do this.  My project is
running fine, but I wonder if there's a better way to implement this than
what I've done here.

This is a snippet of the code I used:

if(size > 0)
            printDiamond(size);
        else if (size == 0)
            throw new MyOwnZeroValueEnteredException();

          else if (size < 0)
            throw new MyOwnNegativeValueEnteredException(strSize);


Thanks in advance for any input!

Cheers,

-m
-- 
Love is a snowmobile racing across the tundra and then suddenly it flips
over, pinning you underneath. At night, the ice weasels come.

- Matt Groening

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to