Posts from Java

How to create a Stopwatch in Java

By Sai Venkat Kodithyala

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

How to remove a prefix from a string in Java

By Sai Venkat Kodithyala

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

Bean in Java

By Pratiksha Bhandari

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

How to print % in Java using String.format

By Sai Venkat Kodithyala

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

How to extract float numbers from a string in Java

By Tishya Thakkar

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

How to Generate random numbers in a specific range in Java

By Tishya Thakkar

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

Decode URL in Java

By Pratiksha Bhandari

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

Check if a number is super perfect or not in Java

By Aakash Puri

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

Related Posts