// before Java 7, explicit generic type declaration required List<String> myList = new ArrayList<String>(); // since Java 7, dia...
Filters method is Private methods in interface - Java9
FilterMain.java /** * */ package com.java9r; /** * @author Ravi * */ public class FilterMain { /** * @param args */ public static...
Private method in interface - Java 9
InternalPrivateMethodMain.java package com.java9r; import java.util.*; /** * @author Ravi * */ public class InternalPrivateMethodMain im...
Factory Method for immutable Map using ofEntries java 9
ImmutableMap.java package com.java9r; import java.util.*; public class ImmutableMap { public static void main(String[] args) { try { S...
Factory Method for immutable Map java 9
ImmutableMap.java package com.java9r; import java.util.*; public class ImmutableMap { public static void main(String[] args) { try { S...
Collections - Factory method for immutable Set using Bean java 9
ImmutableSet.java package com.java9r; import java.util.*; public class ImmutableSet { public static void main(String[] args) { try { ...
Collections - Factory method for immutable Set using String java 9
ImmutableSet.java package com.java9r; import java.util.*; public class ImmutableSet { public static void main(String[] args) { System....