Posts by Kollabathula Preetham

Author Biographical Info: A Computer Science student.

Calculating the Area of Triangle in all 4 ways in Java

By Kollabathula Preetham

Hey coders! In this tutorial, we will learn the different ways of calculating the area of a Triangle and implement it in code in Java. So a Triangle has three sides and three angle.... Read More

Maximum sum of an Hourglass in a Matrix in Java

By Kollabathula Preetham

In this tutorial, we will learn how to calculate the maximum sum of an hourglass in a 2 – Dimensional matrix in Java. An hourglass is a subset of 7 values with indices which .... Read More

Shift elements of an array to Left in Java

By Kollabathula Preetham

In this tutorial, we will learn how we can shift the elements of an array to left using loops in Java. In this problem, we shift each of the elements of the array to left with the .... Read More

How to Print a Staircase Pattern in Java

By Kollabathula Preetham

In this tutorial, we will learn how to print a Staircase pattern in Java. A staircase can be either Left-Aligned or Right-Aligned. A staircase is a simple java pattern program whic.... Read More

Shift elements of an array to Right in Java

By Kollabathula Preetham

In this tutorial, we will learn how we can shift the elements of an array to right using loops in Java. In this problem, we shift each of the elements of the array to right with th.... Read More

Time Conversion in Java

By Kollabathula Preetham

In this tutorial, we are going to learn Time conversion in Java (i.e) how we can convert 12-hour time notation to 24-hour time notation. In simple words given a time in 12-hour AM/.... Read More

Implementing Lucas Series in Java

By Kollabathula Preetham

In this tutorial, we will learn how to implement Lucas series in Java. So what is Lucas Series? Lucas Series Lucas Series is an integer sequence which is named after a mathematicia.... Read More

Calculating the sum of all numbers in a String in Java

By Kollabathula Preetham

In this tutorial, we will be calculating the sum of all numbers in a String in Java. The problem is pretty simple. We are supposed to add up all the numbers in a string. The part w.... Read More