Search:

Type: Posts; User: Pinares

Search: Search took 0.17 seconds.

  1. Replies
    11
    Views
    4,771

    Re: Combination lock

    Its because the test class does not know which input goes to which position. I'm sure I have to implement the counter into the test class. I don't know how though, like in the first input, the test...
  2. Replies
    11
    Views
    4,771

    Re: Combination lock

    Okay, now regardless of the input, right or wrong it gives me this message in the out put right after it prints the user input:
    "The combination to MasterLock is JAP
    The user entered combo is JAP...
  3. Replies
    11
    Views
    4,771

    Re: Combination lock

    I actually fixed the printing problem. Now the prototype program runs fully but I still can't get the arguments in the setPosition method to match the ones in the lock class. I know the counter is...
  4. Replies
    11
    Views
    4,771

    Re: Combination lock

    I cannot do that since I have to declare input2 before I print it, and since it is declared in the input it does not get the chance to print the length. As soon as type the second character and press...
  5. Replies
    11
    Views
    4,771

    Re: Combination lock

    So the string "input2" is longer than 1 character?
  6. Replies
    11
    Views
    4,771

    Combination lock

    For starters, I have no clue how to use the counter IV. I'm trying to create a combo lock with a 3 letter combo. in my test class I try to use the setPosition() method to try out a random or the...
Results 1 to 6 of 6