aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test3/RecReplace.java
blob: 60fa44a974bdac60cbf0c575cada98ee33df187c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package test3;

public class RecReplace {
    public int run() {
        double d = 4.0;
        int i = foo(3.0);
        int j = bar(d);
        return i + j;
    }

    public int run2() {
        double d = 4.0;
        int i = foo(3.0);
        int j = bar(d);
        return i + j;
    }

    int foo(double d) { return (int)d; }
    int bar(double d) { return (int)d + 1; }
}