aspose file tools*
The moose likes Java in General and the fly likes Runnable Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Runnable Interface " Watch "Runnable Interface " New topic
Author

Runnable Interface

Avneet Singh
Ranch Hand

Joined: Apr 25, 2006
Posts: 51
Hi all

I have a class implementing runnable interface, but when i call one of the constructor of the class it doesnot call it. for eg class ABC implements runnable and i have put a constructor ABC with some params in the constructor.


In the above code there are two constructors.
The next code calls the code

Here when ReadXLS construct is called it does not print the line in the constructor for ReadXLS, and when i choose the other constructor with params it doesnt compile saying method not found.
Is it that when implementing runnable you cannot have a customized constructor accepting params with it.?

any help would be appreciated.
Thanks
Avneet
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Take a careful look at your constructors in ReadXLS.
Tim LeMaster
Ranch Hand

Joined: Aug 31, 2006
Posts: 226


This is not a constructor. Constructors do not have return types. This is a method that is unforunately named the same as the Class.
Avneet Singh
Ranch Hand

Joined: Apr 25, 2006
Posts: 51
Thnx all
my fault
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Runnable Interface