Skip to main content
summaryrefslogtreecommitdiffstats
blob: d40a766b94c8d94f71d18710d3f1821f745284b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package argument_out;

public class TestLocalReferenceLoop {
	public void main() {
		int i= 10;
		for (int z= 0; z < i; z++) {
			int x = i;
			x= x + 10;
			bar(x);
		}
	}
	
	public void foo(int x) {
		x= x + 10;
		bar(x);
	}
	
	public void bar(int z) {
	}
}

Back to the top