add streamBenchmark · java8/Java8InAction@e936e46 · GitHub
Skip to content

Commit e936e46

Browse files
author
liuning11
committed
add streamBenchmark
1 parent 318a947 commit e936e46

20 files changed

Lines changed: 551 additions & 510 deletions
Lines changed: 148 additions & 132 deletions
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
package lambdasinaction.chap2;
22

3-
public class MeaningOfThis
4-
{
5-
public final int value = 4;
6-
public void doIt()
7-
{
8-
int value = 6;
9-
Runnable r = new Runnable(){
10-
public final int value = 5;
11-
public void run(){
12-
int value = 10;
13-
System.out.println(this.value);
14-
}
15-
};
16-
r.run();
17-
}
18-
public static void main(String...args)
19-
{
20-
MeaningOfThis m = new MeaningOfThis();
21-
m.doIt(); // ???
22-
}
3+
public class MeaningOfThis {
4+
public final int value = 4;
5+
6+
public void doIt() {
7+
int value = 6;
8+
Runnable r = new Runnable() {
9+
public final int value = 5;
10+
11+
public void run() {
12+
int value = 10;
13+
System.out.println(this.value);
14+
}
15+
};
16+
r.run();
17+
}
18+
19+
public static void main(String... args) {
20+
MeaningOfThis m = new MeaningOfThis();
21+
m.doIt(); // ???
22+
}
2323
}
Lines changed: 16 additions & 18 deletions

0 commit comments

Comments
 (0)