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...
Type: Posts; User: barhom
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...
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...
try using debugging mode and see where it doesnot print,the code seems prety fine
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...
its k i solved it :)
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...
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...
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...