anurag muthyamMethod and Constructor References using streams APIMethod References:Jul 29, 2019Jul 29, 2019
anurag muthyamIntroducing reduce() function using streams APIJava 8 allows one to use reduce() operator using streams. It is s a terminal operator. It takes two arguments and returns a scalar. So…Jul 28, 2019Jul 28, 2019
anurag muthyamCreating Immutable List in JavaWe all are good at implementing and using the mutable list in our programs. They fulfill our needs such as adding, removing and…Jul 27, 2019Jul 27, 2019
anurag muthyamUsing Meta-programming in Ruby to reduce code sizeLet us create a program for the login functionality:Jul 9, 2019Jul 9, 2019
anurag muthyamStreams using forEach() with examplesLets us write a method that fetches 5 random numbers. Firstly let us create an algorithm using a traditional loop and then we will write…Jul 7, 2019Jul 7, 2019
anurag muthyamStreams using forEach functionLet us suppose we want to iterate a list and print the items present inside a list. How would you do it using imperative programming in…Jul 7, 2019Jul 7, 2019
anurag muthyamHow Java 8 introduced Lambda ExpressionsLet’s create a class by the Country that consists of private variables to hold country name, capital and the population. The class also…Jul 7, 2019Jul 7, 2019