Search:

Type: Posts; User: Norm

Search: Search took 0.29 seconds.

  1. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    How much of this code did you write?

    How much of the code did you copy from someone else? You don't seem to be able to read the code and understand what the code is doing. If you have not...
  2. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    What value is h supposed to have?
    Where is that value available so it can be assigned to h?
  3. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    why what? When you ask a question include enough details so it can be understood.
  4. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    Why is the value of h null? The code needs to assign a value to h. Where is the missing code that should be assigning a value to h? If there is code that assigns a value to h, why isn't that code...
  5. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    What was the value of h when you printed it out?
  6. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    Write what down?
    Do you know how to use the println() method to print out the values of variables?
    Use it to print out the value of h
  7. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    Add the println just before line 30 where the NPE happens.

    Did you miss reading post#6?
  8. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    Print out its value to see.
  9. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    Is h null?
  10. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    What value does the variable h have? Add a println to print its value.

    There is no variable named basic in that code.
  11. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    What statement is on line 30?
    If there is a NPE thrown on that line, that means there is a variable with a null value on that line. You need to find the variable and then fix the code so it does...
  12. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    There is a variable with a null value on line 30. Look at line 30 in the your source and see what variable is null. Then backtrack in the code to see why that variable does not have a valid value....
  13. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    Copy the full text of the error messages and paste it here.
  14. Replies
    27
    Views
    1,167

    Re: i need help with my code plz

    What is your question or problem?

    Please edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.
Results 1 to 14 of 14