In this article, we’ll learn how to validate IPv4 addresses using Java Regex
Quick example to format any type of number - int, long, float, and double to 2 decimal places in Java
Fetch Data from multiple sources asynchronously using Java executor fixed thread pool and combine them in Java
In this tutorial, we’ll learn different methods to convert long primitive or Long object to String in Java
In this tutorial, we’ll learn basics of Java Annotations, Built-in Java Annotations, How to create single-value, multi-value, repeated and type annotations and How to use them at runtime.
In this tutorial, we’ll learn how to generate a random number, generate a random array or list, get a random element from an array or list, and shuffle the list elements.
This problem is frequently asked in the interview to check your understanding on threads and your programming skills. Problem statement might change for e.g.
- Print ping pong using two threads.
- Print alternate number using two threads.
- Print even numbers by one thread and odd numbers by another thread.
In this tutorial, we’ll learn different ways to compare two strings in Java
In this quick article, We’ll see usage of Java Math.pow() method which takes two arguments, a and b, and returns a to the power of b i.e. ab
In this article, we’ll learn how to validate mobile phone number of different country’s format using Java Regex (Regular Expressions)