This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Mapping hjkl on left up down and right</name> | |
<identifier>private.mapping_hjkl_on_arrow</identifier> | |
<autogen>__KeyToKey__ | |
KeyCode::H, ModifierFlag::CONTROL_L, | |
KeyCode::CURSOR_LEFT | |
</autogen> | |
<autogen>__KeyToKey__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In Java 8, there are stream(), map() and collect() for better collection manipulation | |
ArrayList<String> list = new ArrayList<>(); | |
for(Person person : people) | |
{ | |
list.add( person.getNickName() ); | |
} | |
// The above code is shortened with the below | |
List<String> list = people.stream().map( Person::getNickName ).collect( Collectors.toList() ); |
NewerOlder