Java: Functions, Loops, Variables, and a sock merchant

Abhinav Srivastava
3 min readAug 20, 2019

Introduction to the series, Structure of a Java program and stuff

First, I talk about basics, such as in the previous article. In this one, I am going to pick up a problem from HackerRank’s interview prep kit and solve it, explaining Functions, For loops and working with variables.

Over the next few articles, I will focus on all basics such as OOPs, Methods, Constructors, the ten I/O types in Java.

I will dedicate a few articles solely to advanced OOPs.

Abhinav Srivastava

Building: Ignite Tournaments / Former: DeFi Alliance, Persistence, Eth India Co