/* package whatever; // don't place package name! */
import java.util.*;
import java.util.stream.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Stream<String> fruitStream = Stream.of("apple", "banana", "pear", "kiwi", "orange");
fruitStream.filter(s -> s.contains("i"))
.sorted()
.
forEach(System.
out::println
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnN0cmVhbS4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmVhbTxTdHJpbmc+IGZydWl0U3RyZWFtID0gU3RyZWFtLm9mKCJhcHBsZSIsICJiYW5hbmEiLCAicGVhciIsICJraXdpIiwgIm9yYW5nZSIpOwoKCQlmcnVpdFN0cmVhbS5maWx0ZXIocyAtPiBzLmNvbnRhaW5zKCJpIikpCiAgICAgICAgCQkgICAubWFwKFN0cmluZzo6dG9VcHBlckNhc2UpCiAgICAgICAgCQkgICAuc29ydGVkKCkKICAgICAgICAJCSAgIC5mb3JFYWNoKFN5c3RlbS5vdXQ6OnByaW50bG4pOwoJfQp9