Posts by Ayush Sanghavi
Author Biographical Info: An alpha geek programmer immensely in love with {coding};
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
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
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
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
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
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