Posts by Akash Tripathi

Author Biographical Info: I am a Computer Science Engineering Undergraduate, who loves coding and developing web applications.
I always try myself to keep myself updated with the latest technologies, which my quick learning ability helps me to do it easily.

Printing Table of a Particular Number in Java

By Akash Tripathi

Today we will see how to print the table of a particular number in Java. This program basically deals with output formatting, that is, getting output in the format “5 x 1 =5&.... Read More

Check if a number is special or not in Java

By Akash Tripathi

Today we will how to check whether a number is a Special number or not in Java. But before that, we should know what is a special number. A special number is a number such that the.... Read More

Count the prime numbers in a certain range in Java

By Akash Tripathi

Hey folks, today we will see how to count the prime numbers in a certain range in Java. For this purpose, we won’t be using any predefined methods and will code the logic fro.... Read More

Java program to find maximum and minimum element in an Array

By Akash Tripathi

Today we will see how to find the maximum and minimum element in an array in Java. For this purpose, we will use two variables max and min and then compare them with each element a.... Read More

Sum of principal diagonal of a Matrix in Java

By Akash Tripathi

Hello coders, today we will see how to find the sum of principal diagonal in a matrix in Java. A matrix is nothing but a 2D array, and since we need to work with diagonal therefore.... Read More

Sum of secondary diagonal of a matrix in Java

By Akash Tripathi

In the last tutorial, we learned about the sum of the principal diagonal of a matrix, in this tutorial we will see how to find the sum of the secondary diagonal of a matrix in Java.... Read More

Occurrence of a particular element in an Array – Java

By Akash Tripathi

Today we will see how to count the number of occurrences of a particular element in an Array in Java. Example: If the array is :  10   15   17   19   19    15    10  .... Read More

Rounding off a number to nearest multiple of 10

By Akash Tripathi

Today we will see how to round off a number to the nearest multiple of 10 in Java. Example: 13 will be rounded off to 10. 27 will be rounded off to 30. 55 will be rounded off to 50.... Read More

Related Posts