*
The moose likes Threads and Synchronization and the fly likes problem on: passing parameter that it only reads as null for every value (full code) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic
Author

problem on: passing parameter that it only reads as null for every value (full code)

Sara Brown
Ranch Hand

Joined: Feb 22, 2012
Posts: 55
this is my program..please do help.

It does not passing the parameter that i hope and keep read as null only the object works properly.

and return numThread in the operation class which i bold, also passing the null value


*p/s: i bold some of the code that might be error..*



MainClass.java



operation.java

Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1505
    
    5

Hi Sara Brown,
It seems that this is the same question going on in another thread (started by you).

I would suggest to close this thread and take a look at Steve Luke's reply on original post.

I hope this helps.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Yes, that's right. Let's keep the discussion all in one place. For those interested, the active thread is here: http://www.coderanch.com/t/573713/threads/java/passing-parameter-it-only-reads and I will close this one.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem on: passing parameter that it only reads as null for every value (full code)