Posts by Tishya Thakkar

Author Biographical Info: Not available

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

How to throw an exception in Java

By Tishya Thakkar

In this tutorial, we will learn how to throw an exception in Java. We use exceptions in Java to check for errors at compile-time instead of runtime. We can also create custom excep.... Read More

How to Return an Array in Java

By Tishya Thakkar

In this tutorial, we will learn how to return an array in java. Returning an array in Java Step 1: You have to declare the return type of the method as an array of the data type y.... Read More

How to split a string by space in Java

By Tishya Thakkar

In this tutorial, we will learn how to split a string by space in Java. This can be done using the Java string split() method. Split a string by space in Java The split method take.... Read More

How to find common dates between two date ranges in Java

By Tishya Thakkar

In this tutorial, we will learn how to find common dates between two date ranges in Java. To do this, we will be using the LocalDate Java class. This will give us an immutable date.... Read More

How to check if a date is a weekend or not in Java

By Tishya Thakkar

In this tutorial, we will learn how to check if a date is a weekend or not in Java. To do this we will use the LocalDate class in Java as shown below. We will use this as we are ju.... Read More

How to fetch text from a PDF and store in a .txt file in Java

By Tishya Thakkar

In this tutorial, we will look at how to fetch text from a PDF file and then store it in a text file using java. To do this we will use an open-source Java library known as PDFBox..... Read More