Last active
December 23, 2017 02:57
-
-
Save danielamorais/1ef2bc53093fd0d2c86bebf4bb480d02 to your computer and use it in GitHub Desktop.
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
List<String> names = Arrays.asList("John", "Jack", "Hamilton", "George"); | |
for(String name : names){ | |
if(name.startsWith("J")){ | |
System.out.println(name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment