Thanks for your post, but java 8+ can be more compact For ex: String operation:
String test = "compare Java with Python"; Arrays.asList(test.split(" ")).forEach(System.out::println);
About maps
Map<String, String> map = new HashMap<String, String>() {{ put("1", "2"); put("2", "3"); }}; map.forEach((key, value) -> System.out.println("key=" + key + " value="+ value));
And other examples I think can be made shorter.
Indeed, Java 8 makes Java code more concise.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for your post, but java 8+ can be more compact
For ex:
String operation:
About maps
And other examples I think can be made shorter.
Indeed, Java 8 makes Java code more concise.