Posts by Ayush Sanghavi

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

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