posted 13 years ago
Suppose I have a class with a method like:
public void isWholeNumber()
{
checkIfWholeNumber();
}
where checkIfNumber() returns a boolean.
Is there a way to access that boolean value from another class?
Meaning could I do something like:
boolean i = ten.isWholeNumber().checkIfWholeNumber();
Thanks for the help