public static void printMap(Map mp) { Iterator it = mp.entrySet().iterator(); while (it.hasNext()) { Map.Entry pair = (Map.Entry) it.next(); System.out.println(pair.getKey() + ” = ” +
Why List = new ArrayList() ? in Java
The main reason you’d do this is to decouple your code from a specific implementation of the interface. When you write your code like this:
What is the difference between ‘margin’ and ‘padding’ in CSS
Margin and Padding both looks confusing at first but when you try to understand bottom line is While you have to deal with White Space
Javascript – The ‘this’ keyword
In JavaScript this refers to the “owner” of the function we’re executing or to the object that a function is a method of. When we define our
Getting error while creating enum with Angular CLI? Is it a bug with Angular CLI?
I got the following error while trying to create enum with Angular CLI:
Cannot read property ‘0’ of undefined …
Java 9 : JShell (REPL) feature
We heard a lot about REPL when we were developing AngularJS app or NodeJS app. Which works on Read-Evaluate-Print-Loop mechanism. Java Shell tool is an interactive
Generate Routing Application using Angular CLI
Create a new workspace and generate a new Routing application by running the following command in command prompt…
Generate Class, Interface and Enumerations using Angular CLI
Run the below command to generate Class…
Easy step to create and configure an Angular Service using Angular CLI
The below command will generate angular service in the project directory…
Easy step to create and configure an Angular Directive using Angular CLI
The below command will generate angular directive in the project directory…
Easy step to create and configure an Angular component using Angular CLI
Run the below command to generate angular component in the project directive
Migrating Angular project to AngularCLI with ‘ng new {appName} –dry-run’
The command outputs the files with the standard folder structure following the angular best practices…