|
home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs
Today you will continue lab02a—applying the design recipe: books-a-jillion, (though you don't need to work with exactly the same partner; if you don't just choose one or the other of your solutions to continue working on). If you didn't finish, you can use lab02a-soln-Bookstore.java. However, at this point, you should be able to come up with such test cases on your own. If it's not clear how to do this, stop by (peer) instructor office hours.
Raise your hand, and a (peer) instructor will come by and check off you and your partner.
You must have a working
While waiting to be checked off, you and your partner can start on the next problems.
int endIndx; endIndx = length(word); int startIndx; startIndx = endIndex-3; return substring(word, startIndx, endIndx); |
Practice, writing a function from the top:
Write
Your solution should include at least three test cases (presumably chosen so that the answer is easy to compute w/o a calculator).
Note: The
home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs
©2012, Ian Barland, Radford University Last modified 2012.Sep.06 (Thu) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |