This file contains hidden or 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
public String firstLetterCapitalWithSingleSpace(final String words) { | |
return Stream.of(words.trim().split("\\s")) | |
.filter(word -> word.length() > 0) | |
.map(word -> word.substring(0, 1).toUpperCase() + word.substring(1)) | |
.collect(Collectors.joining(" ")); | |
} |
This file contains hidden or 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
$ cd myproject | |
$ git checkout myBranch | |
$ git push -u origin myBranch | |
# In some cases -u showed as invalid argument, so use this | |
$ git push origin <local name> |