File: Bug571310.java

package info (click to toggle)
eclipse-jdt-debug 4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,876 kB
  • sloc: java: 234,390; xml: 6,367; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

public class Bug571310 {
    public static void main(String[] args) {
    	(new Bug571310()).run();
    }
    
    public void run() {
		Stream.of("2")
		.map(f -> this.selfAppend(f) + ".0")
		.map(f -> this.appendDollar(f) + "0")
		.forEach(System.out::print);
    }

	public String selfAppend(String val) {
		return val.concat(val);
	}

	private String appendDollar(String val) {
		return "$".concat(val);
	}

}