July 28, 2011
4:02 p.m.
Hi Dario, On Thu, Jul 28, 2011 at 5:11 PM, Dario Trussardi <dario.trussardi@tiscali.it> wrote:
Any other indications to solve this problematic ?
looking for a temporary variable is probably possible but not elegant. It also means that only methodA can call methodB. There are multiple solutions: - add an instance variable (but you don't like it) - add a parameter to methodB (but you don't like it) - create a dedicated class with with just var1 as instance variable and methodA and methodB as methods. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry