Im in hour 19 of sams
java book and we are talking about threaded programs. I have copied over his programs or even copy and pasted them and there is just something run with the threaded part of them.
indPrimes.java:36: error: constructor
Thread in class Thread cannot be applied to given types;
go = new Thread(this);
^
required: no arguments
found: FindPrimes
reason: actual and formal argument lists differ in length
./Thread.java:31: error: constructor Thread in class Thread cannot be applied to given types;
t = new Thread( this );
^
required: no arguments
found: Thread
reason: actual and formal argument lists differ in length
./Thread.java:80: error: cannot find symbol
t.sleep( 1000 ); // interval given in milliseconds
^
symbol: method sleep(int)
location: variable t of type Thread
3 errors
Those are the errors I get. Any idea why I am getting these?
Here is the link to the code if your interested in checking it out. Any help is appreciated I really cant figure this out and would like to finish up these last few chapters.Thanks a bunch
http://workbench.cadenhead.org/book/java-7-24-hours/source/chapter19/PrimeFinder.java