Remove element from Array Javascript ----------------------------------------------------------------------- const array = ["test1", "test2", "test3", "test4"]; console.log(array); const index = array.indexOf("test2"); if (index > -1) { array.splice(index, 1); } // **** array = ["test1", "test3", "test4"] console.log(array);
Java 8 features was released on 18th March 2014 and we need to be on top of it. In this tutorial, we will look into Java 8 features with examples. ----------------------------------------------------------------------------- Java 8 features : 1. Lambda Expression 2. Method references 3. Interface changes: Default and static methods 4. Streams 5. StringJoiner class with example 6. Stream filter 7. forEach() Method 8. Functional interfaces 9. Optional class with example 10. Collectors class with example 11. Arrays Parallel Sort