Posts by Ayush Sanghavi

Author Biographical Info: An alpha geek programmer immensely in love with {coding};

How to remove blank lines from a text file in Java

By Ayush Sanghavi

Hi, today’s tutorial is about how to remove blank lines from a text file in Java. Imagine, you have a huge text file running into thousands and thousands of characters with a.... Read More

File Handling in Java using NIO package

By Ayush Sanghavi

Let us first study what NIO is and how can we use it for File Handling in Java. So basically, Java has provided us with another I/O system called the NIO which stands for NEW I/O. .... Read More

How to use functional interface in Java

By Ayush Sanghavi

In this tutorial, I will introduce you to the term interface in Java. Interface can have methods and variables like class, but the methods are by default abstract. It does not have.... Read More

How to shuffle elements in a LinkedList in Java

By Ayush Sanghavi

In this tutorial, we will study how to shuffle elements in a LinkedList in Java. For a better understanding, let’s understand what a Linked List is. Linked list elements are .... Read More

How to print a random card from a deck of cards in Java

By Ayush Sanghavi

In this tutorial, we will learn how to print a random card from the deck of playing cards in Java. This program can be done in multiple ways. You can use ArrayLists, collections, s.... Read More

How to shuffle an ArrayList in Java

By Ayush Sanghavi

In this tutorial, we will learn how to shuffle or randomise an ArrayList in Java. We shall use ArrayList to implement the same. ArrayList is present in the Collections framework of.... Read More

Related Posts