, , getFoo "" setFoo.
setFoo(){
}
, getFoo setFoo. , :
public static int foo(int i) {
System.out.print("FOO!");
return i;
}
public static int bar(int i) {
System.out.print("BAR!");
return i;
}
public static void main(String[] args) throws Exception {
System.out.println(foo(bar(1)));
}
:
BAR!FOO!1
, bar foo. , , ( ) getFoo, , setFoo. , 0, setFoo, 1.