Search:

Type: Posts; User: barhom

Search: Search took 0.13 seconds.

  1. Replies
    4
    Views
    299

    Re: global variables for threads

    someone told me i should make private class which only threads or mains can acess them by giving the threads the right parametrs in the constructor ,and main which allocate memory for the class ,is...
  2. Replies
    4
    Views
    299

    Re: global variables for threads

    nope i understand what your saying,but not my problem,my teacher told us their global vars for threads ,that only them they can access,i asked how to use those global vars and how to access them she...
  3. Replies
    10
    Views
    230

    Re: Code doesn't work despite being from book

    try using debugging mode and see where it doesnot print,the code seems prety fine
  4. Replies
    4
    Views
    299

    global variables for threads

    hey i have java assignment ,its like these i have 2 mythreads class which extend the original thread and main , in which class i need to put global variables for both thread and main to use,and how...
  5. [SOLVED] Re: error in my code(Exception in thread "main" java.lang.NullPointerException)

    its k i solved it :)
  6. [SOLVED] Re: error in my code(Exception in thread "main" java.lang.NullPointerException)

    i figured out my problems but i donot know how to solve it like i explained here i have to do
    i have class called Choice ,it has constructor which takes array and store it in his array attribute!
    i...
  7. [SOLVED] Re: error in my code(Exception in thread "main" java.lang.NullPointerException)

    i have assigemenet to do if you can help me with,
    i have an class called Choice and it has constructor which takes array and store it in his array(attribute in Choice class)

    ,i have an game class...
  8. [SOLVED] error in my code(Exception in thread "main" java.lang.NullPointerException)

    hey guys i am getting frustrated about this work,i am getting error like this
    Exception in thread "main" java.lang.NullPointerException
    at Game.<init>(Game.java:21)
    at...
Results 1 to 8 of 8