Remove vowels from a string using Java

Below is a Java program that removes all vowels from a given string. A user is prompted to enter a string. The program will eliminate all vowels from that string, if any, then print the result out to the console. Java program to remove vowels from a string import java.util.Scanner; public class Main { public... » read more

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

Get ASCII value for a character in Java

In this code snippet, you will learn how to get the ASCII value of a character in Java. ASCII code values in Java The concept is easy, the program will read from the user a char value, find the ASCII representation of that char, then print it out to the console. import java.util.Scanner; public class... » read more

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

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

Calculate the Median value of two arrays using C#

Using C#, create a function/subroutine that takes two arrays as parameters, and return the median of the two arrays. Example of Median values of two arrays What is the median value? The median value of a list of numbers is the number that is right in the middle of this list. The list must be... » read more

How to convert SQL query to LINQ

Short for Language INtegrated Query, LINQ serves as a means for the .NET languages to retrieve data from the data sources by building suitable queries. First introduced with the .NET Framework, version 3.5 and Visual Studio 2008, the most significant advantage with LINQ vis-a-vis SQL queries is that the former is a lot simpler while... » read more

An overview of multithreading in Java

When an operating system starts a program, it creates a new process; a process is essentially a program that is currently running. Every process is given one Thread (it can have more). Think of a thread as a linear path of execution through a program. Each Thread has its local variables, program counters (a program... » read more

Agile Best Practices for Better Team Productivity

The agile methodology is widely adopted by many industries whose primary focus is to build products through a continuous cycle of small changes. Waterfall uses step by step techniques for product development while the agile practices bring flexibility with constant updates in the whole process. According to a recent survey, 71% of organizations use agile... » read more

Python Face detection Using OpenCV

Today, with the development of modern technology, we can see so many applications are using face detection technologies to make their solutions optimal. Let us try to get started with this interesting technology through this article. In this article, we are going to discuss how we can detect faces in a given image file using... » read more