Build a simple web application using Node.js and MySQL

In this article, we will build a basic To-do web application using Node.js and MySQL database. We will use the Express.js framework to keep our application short and simple. Moreover, we will use the Express Handlebars as our view engine. A simple Todo app using Node.JS and MySQL The To-do application will have the following … Read more Build a simple web application using Node.js and MySQL

Program to get yesterday’s date in Java

In this Java program, you will learn how to retrieve yesterday’s date, then print it out to the console. The concept is easy; get today’s date and substrate one day from it. The output will be formatted as MM/DD/YYYY Get yesterday’s Date using Java package cp; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main … Read more Program to get yesterday’s date in Java

Get IP address, computer name and MAC address using Java

In this code snippet, you will learn how to get an IP Address, computer name, and MAC address in a Windows OS environment using Java. We are going to use the namespaces below in order for this program to execute and run. import java.net.InetAddress; import java.net.NetworkInterface; Java Program to Get IP address, computer name, and … Read more Get IP address, computer name and MAC address using Java

Swapping 2 numbers using Java

This Java example will swap the first variable’s value into the second variable and the second variable’s value into the first variable. Swape two numbers in Java public class Main { public static void main (String args[]) { int num1 = 5, num2 = 10; System.out.println (“Numbers before swapping are:”); System.out.println (“Number 1: ” + … Read more Swapping 2 numbers using Java

Convert hexadecimal string to decimal integer in Java

The program below converts a hexadecimal value to its equivalent in integer. It uses the Integer.parseInt() function to convert from hexadecimal, which is included in the Scanner namespace. Convert Hexadecimal string to an integer using Java import java.util.Scanner; class ConvertHexToInt { public static void main(String args[]) { String hexValue = null; int result = 0; … Read more Convert hexadecimal string to decimal integer in Java

How to Use Angular Like a Pro

Angular is a framework or platform used for creating single page application by using HTML and Typescript. Angular is written using Typescript, which means it implements optional and core functionalities as a Typescript library that you can import in your applications. You don’t need to use any third-party libraries to create basic functionalities. Everything is … Read more How to Use Angular Like a Pro