Well written code checks for error conditions and acts to prevent exceptions.
If your instructor told you not to do that, it is not a good practice to skip tests like that but you might have to...
Type: Posts; User: Norm
Well written code checks for error conditions and acts to prevent exceptions.
If your instructor told you not to do that, it is not a good practice to skip tests like that but you might have to...
Code should always test that the data is what is expected. In this case the code expected a String with at least 1 character. The String class's length method would help here.
If you can not...