Search:

Type: Posts; User: walid

Search: Search took 0.10 seconds.

  1. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    can you check the test class ?

    --- Update ---

    h get the values from the user
  2. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    how can i assign values to h?
  3. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    why?
  4. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    the value null
    null
    null
    ......and so on 19 null value

    --- Update ---

    ?
  5. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    [
    instance.setSkills(skills);
    Champion target = new Champion("Annie", attributes, 500, 400);
    instance.useSkill(target, 0, true);
    assertEquals("Target should lose health as expected", 383,...
  6. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    can u write it down to understand
  7. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    in which class?

    --- Update ---

    ?
  8. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    i don't know

    --- Update ---

    please can you tell me what i have to do to fix it, sorry?
  9. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    h is a hashmap with key(strings) and value(boolean)

    --- Update ---

    ?
  10. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    public void setBasic(boolean ba){
    h.put("Basic", ba);
    }

    you mean the variable basic
  11. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    There is no variable with a null value on line 30. check it plz
  12. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    all the errors in test class

    --- Update ---

    java.lang.NullPointerException
    at eg.edu.guc.lol.game.champions.Skill.setBasic(Skill.java:30)
    at...
  13. Replies
    27
    Views
    2,847

    Re: i need help with my code plz

    t
    }
    [/code]
  14. Replies
    27
    Views
    2,847

    i need help with my code plz

    }
    public void setStunned(boolean stun){
    stunning = stun;
    }
    public int getMaxMana() {
    return maximumMana;
    }
    public int getCurrentHealth() {
    return currentHealth1;
    }
Results 1 to 14 of 16