In this tutorial, we will be learning how to create a stopwatch in Java. I will be not importing any new packages. Using the basic Java packages we can create a stopwatch. What is .... Read More
In this tutorial, we are learning how to remove a prefix from a string in Java. We can remove a prefix from a string using the substring method. Also read: How to remove leading z.... Read More
For understanding the bean concept in Java, suppose we don’t want our declared variables to be shared so we simply make them private. But what if we want to access them or ch.... Read More
In this tutorial, we are learning how to print % in Java using String.format function. How to print % in String.format To print ‘%’ in String.format we need to use two .... Read More
In this tutorial, we will look at how to extract float numbers from a string in Java. To do this we will use a regular expression to match and find float values in a string. Extrac.... Read More
In this tutorial, we are going to learn how to generate random numbers in a specific range in Java. To do this we can use different methods like Math.random, random class, or Threa.... Read More
In Java, there is a predefined class for decoding as well as for encoding any URL. For decoding URL, ‘URLDecoder’ class is present and for encoding URL, ‘URLEncod.... Read More
In this tutorial, you will learn about what is super-perfect number and the implementation in Java. But before that, you must know what is a super-perfect number. What is a Super-p.... Read More