In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Now, in the email field, the **user** may put a single backslash (if they were experimenting or just by mistake) and this would crash the program. Please note that the **user** does not know that they have to escape a backslash in Java, ...
... So in Java is there a way of throwing an exception if a string is not constructed properly i.e. it contains an improperly escaped character??
I had thought that throwing an IllegalArgumentException would do the trick but alas.
Of course, I might be doing this the wrong way, I�m still learning. Somebody told me that I shouldn�t be doing this application in this manner i.e passing the email string into the constructor but they did not tell me how I should go about doing it instead. So any more thoughts? Please, anybody??
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|