boolean display = A.B(inputInfo);
The return statement you used is legal. You can return false, true, or a boolean variable when using a boolean method. When you call A.B() that line of code becomes (basically anyways) the data type you are returning. That is why if you have a method that returns a String you can say
String testString = Class.returnMethod(someVariable)
As long as returnMethod() returns a String, the above code will work. The same concept applies to your situation.
Last edited by jasimp; Mar 16th, 2009 at 11:17 pm.
Reputation Points: 533
Solved Threads: 53
Senior Poster
Offline 3,593 posts
since Aug 2007