Search:

Type: Posts; User: csisock

Search: Search took 0.16 seconds.

  1. Re: Java TDD Help! Need to create a Library Class to pass 3 TDD tests. I'm clueless.

    I've tried sticking


    if(numBooks == theBooks.length)
    {
    theBooks[numBooks++] = book;
    }

    In my public void addBook method
  2. Re: Java TDD Help! Need to create a Library Class to pass 3 TDD tests. I'm clueless.

    I've tried sticking


    for (int x = 0; x < numBooks; x++)
    {
    theBooks[x] = book;
    if (book == null)
    {
    break;
    }
  3. Re: Java TDD Help! Need to create a Library Class to pass 3 TDD tests. I'm clueless.

    Here's the 3 tests that I need to pass:



    public class TestLibrary
    {

    /**
    * When a library is created, it should know its space.
    */
  4. Java TDD Help! Need to create a Library Class to pass 3 TDD tests. I'm clueless.

    Here's the 3 tests that I need to pass:



    public class TestLibrary
    {

    /**
    * When a library is created, it should know its space.
    */
Results 1 to 4 of 4