Posts by Krishna Lakhi

Author Biographical Info: Not available

Rounding BigDecimal values with specific Decimal Places in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn how to round BigDecimal values in Java up to specific decimal places. BigDecimal class in Java The BigDecimal class in Java is useful f.... Read More

Java Program to find and count a specific word in a Text File

By Krishna Lakhi

Hey everyone! In this article, we will learn how to find a specific word in a text file and count the number of occurrences of that word in the text file. Before taking a look at t.... Read More

Extract Date from a String in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn how to Extract a Date from a user-entered String in Java. We will be using the date class in Java to parse the String inputted by the u.... Read More

Extract Digits from a String in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn how to Extract Digits from a user-entered String in Java and then display each digit. I hope this post is going to be interesting and y.... Read More

How to convert String to BigDecimal in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn how to convert String to BigDecimal in Java. Before directly getting into the code let us first understand BigDecimal class in Java. Bi.... Read More

Take only Integer input from user in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn about how to accept only Integer input from user in Java. So let’s get started. There are several ways in which we can prompt the.... Read More

How to run a task every n seconds or periodically in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn how we can execute or perform a particular task in Java every n seconds or periodically using the Timer and TimerTask classes. Before d.... Read More

Implement polling in Java with poll() method

By Krishna Lakhi

Hey Everyone! In this article, we will learn how to implement polling with the help of poll() method java.util.Queue package in Java. First, let us study the Queue interface presen.... Read More

Related Posts