Pranay Arora has Published 13 Articles

Java Program to Display Name of the Weekdays in Calendar Year

Pranay Arora

Pranay Arora

Updated on 06-Apr-2023 14:17:24

A week in a calendar year consists of 5 weekdays: Monday, Tuesday, Wednesday, Thursday and Friday; the two remaining days (Saturday and Sunday) make up the weekend. If you're working with dates and calendars as an application developer, manually looking up names for weekdays in a year can be tedious. ... Read More

Java Program to Display Name of Months of Calendar Year in Short Format

Pranay Arora

Pranay Arora

Updated on 06-Apr-2023 14:17:02

A year has 12 months which are named January, February, March, April, May, June, July, August, September, October, November, December. These are the complete names of the months and there are multiple ways to represent them like short format, complete format, MM or 2 integers format. In this article, we are ... Read More

Java Program to Extract a Single Quote Enclosed String from a Larger String using Regex

Pranay Arora

Pranay Arora

Updated on 06-Apr-2023 10:28:00

Regex or Regular Expression is language used for pattern-matching and string manipulation. It consists of a sequence of characters which define a search pattern and can be used for performing actions like search, replace and even validate on text input. A regular expression consists of series of characters and symbols ... Read More

Java Program to Demonstrate How User Authentication is Done

Pranay Arora

Pranay Arora

Updated on 06-Apr-2023 10:18:43

Authentication refers to the process of verifying the identity of an individual to make sure the user is exactly who they are claiming to be before giving access to a system. It is very important to authenticate a user to ensure the security as well as integrity of the system. ... Read More

Implementation of LinkedList in Javascript

Pranay Arora

Pranay Arora

Updated on 10-Mar-2023 11:41:26

A linked list is a data structure that consists of a sequence of elements, each of which contains a reference (or "link") to the next element in the sequence. The first element is called the head and the last element is called the tail. Linked lists have many advantages over ... Read More

Java Program to Encode a Message Using Playfair Cipher

Pranay Arora

Pranay Arora

Updated on 10-Mar-2023 11:31:25

Encrypting is the task of transforming information into an unreadable format or cipher text. It is usually done to protect the confidentiality of information. There are many ways and algorithms to encrypt data. One such example is the Playfair cipher algorithm. In this article, we are going to see how ... Read More

Java Program to Empty an ArrayList in Java

Pranay Arora

Pranay Arora

Updated on 10-Mar-2023 11:25:18

ArrayLists in Java are a dynamic array who’s size can grow or shrink as elements are added or deleted from it. It is a part of the “java.util” package and is a very commonly used collection. An ArrayList is pretty much like an array as it stores elements of the ... Read More

Java Program to Display Numbers and Sum of First N Natural Numbers

Pranay Arora

Pranay Arora

Updated on 10-Mar-2023 11:22:28

Natural numbers are all positive integers or whole numbers that range between 1 to infinity. In this article, we are going to see how to display numbers as well as the sum of the first N natural numbers in java where n is defined by the user. Mathematically speaking, the ... Read More

Java Program to Display Floyd's Triangle

Pranay Arora

Pranay Arora

Updated on 10-Mar-2023 11:20:42

Floyd's triangle is a popular right-angled triangular array consisting of natural numbers. The name comes from its founder Robert W. Floyd who was a prominent computer scientist. It is formed by starting with the number 1 at the top of the triangle, and then incrementing each subsequent number by 1 ... Read More

Java Program to Demonstrate the Call By Value

Pranay Arora

Pranay Arora

Updated on 10-Mar-2023 11:16:53

In programming, functions often require parameters to be passed to them in order to be called or invoked. There are 2 ways to call functions, the 1st being call by Reference and the 2nd being call by value. In this article, we are going to demonstrate call by value in ... Read More

Advertisements