Skip to content

Instantly share code, notes, and snippets.

@mevsungur
Created April 9, 2020 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mevsungur/7423c1ee94cb983d8e487147784419a3 to your computer and use it in GitHub Desktop.
Save mevsungur/7423c1ee94cb983d8e487147784419a3 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
List<String> isimler = new ArrayList<>() {{
add("Mevlüt");
add("Sungur");
add("Java");
add("Angular");
}};
for(String s : isimler) {
if(s.startsWith("S")) isimler.remove(s);
}
isimler.stream().forEach(System.out::println);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment