aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test1/LocalVars.java
blob: a3d14d7a0fc5df0451c55fe894214f3b29d788c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package test1;

public class LocalVars {
    public int poi(String str) {
        Object obj = str;
        int hash = obj.hashCode();
        return hash;
    }

    public int foo(int i) {
        int j = 3;
        if (i == 0) {
            String s = "zero";
            j += s.length();
        }
        return j + 3;
    }
}