aspose file tools*
The moose likes Beginning Java and the fly likes modifier such as void ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "modifier such as void ?" Watch "modifier such as void ?" New topic
Author

modifier such as void ?

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi all !
I have a class with a number of methods in it.
Some of these methods are declared
"public boolean BlaBla()"
"public void moreBlaBla()"
The calling client application will import this class and invoke it using
"boolean result = tellMe.BlaBla()"
How do I invoke the moreBlaBla() from the client app? At the moment I am getting the "incompatible type" error !


humanum errare est.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
try:
tellMe.moreBlaBla();


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
At the moment I am getting the "incompatible type" error !
Are you trying to assign the void return value of the method to a boolean?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi !
So I was... Thanks all, problem fixed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: modifier such as void ?