SAShreya Agarwalinshreya-agarwal.hashnode.dev·Oct 16, 2021 · 2 min readMap/Reduce/Filter Algorithm in JavaPre-requisites: Lambda Expressions in Java Stream API in Java The Problem: List of users - find the average age of people above the age of 20 Map: to extract all ages, changes the type of list, not size Filter: to extract all ages > 20, changes ...00
SAShreya Agarwalinshreya-agarwal.hashnode.dev·Oct 16, 2021 · 3 min readStream API in JavaIn Java 8, every class which implements the java.util.Collection interface has a stream method which allows you to convert its instances intoStream objects. Technically: typed interface Extends: BaseStream Also has: IntStream, LongStream, DoubleStre...00
SAShreya Agarwalinshreya-agarwal.hashnode.dev·Oct 16, 2021 · 4 min readLambda Expressions & Functional Interfaces in JavaLambda expressions implement functional interfaces. Adds some functional programming patterns to an otherwise object-oriented language. Functional Interface only one abstract method static and default methods do not count methods from object class l...00
SAShreya Agarwalinshreya-agarwal.hashnode.dev·Oct 3, 2021 · 3 min readA Beginner's Guide to MavenPurpose To give a brief overview about Maven and detail its most important components. What is Maven? Build Tool gives an artifact as an output (component, jar, zip) manages dependencies Project Management versioning Meta information about the pro...00
SAShreya Agarwalinshreya-agarwal.hashnode.dev·Oct 3, 2021 · 2 min readGit HooksWhat are Git Hooks? Hooks are programs you can place in a hooks directory to trigger actions at certain points in git’s execution. That's it. Hooks that don’t have the executable bit set are ignored. By default the hooks directory is $GIT_DIR/hooks,...00