AmitDiwan has Published 11365 Articles

Java Program to Reverse a String

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 11:08:39

808 Views

In this article, we will understand how to reverse a string. String is a datatype that contains one or more characters and is enclosed in double quotes(“ ”). Reverse string is displaying the string backwards or from right to left.Below is a demonstration of the same −Suppose our input is ... Read More

Java Program to Replace a Character at a Specific Index

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 11:03:50

1K+ Views

In this article, we will understand how to replace a character at a specific index. String is a datatype that contains one or more characters and is enclosed in double quotes(“ ”).Below is a demonstration of the same −Suppose our input is −Input string: Java Programming Index: 6The desired output ... Read More

Java Program To Determine If a Given Matrix is a Sparse Matrix

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 10:17:26

232 Views

In this article, we will understand how to determine if a given Matrix is a sparse matrix. A matrix is said to be sparse matrix if most of the elements of that matrix are 0. It implies that it contains very less non-zero elements.Below is a demonstration of the same ... Read More

Java Program to display upper triangular matrix

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 10:12:27

664 Views

In this article, we will understand how to display an upper triangular matrix. The matrix has a row and column arrangement of its elements. A matrix with m rows and n columns can be called as m × n matrix. An upper triangular matrix is a triangular matrix with all ... Read More

Java Program to Recursively Linearly Search an Element in an Array

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 10:05:33

2K+ Views

In this article, we will understand how to recursively linearly search an element in an array. Linear search is a very simple search algorithm wherein a sequential search is done for all items one by one.Below is a demonstration of the same −Suppose our input is −Input array: 14 20 ... Read More

Java Program To Find the Trace and Normal of a given Matrix

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 09:53:05

287 Views

In this article, we will understand how to find the trace and normal of a given matrix. The normal of a matrix is the square root of the sum of squares of all the elements of a matrix. The trace of a matrix is the sum of all the elements ... Read More

Java Program to Multiply to Matrix Using Multi-Dimensional Arrays

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 09:45:12

733 Views

In this article, we will understand how to multiply to matrix using multi-dimensional arrays. The matrix has a row and column arrangement of its elements. A matrix with m rows and n columns can be called as m × n matrix.Individual entries in the matrix are called element and can ... Read More

Java Program to Add Two Matrix Using Multi-Dimensional Arrays

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 09:38:26

791 Views

In this article, we will understand how to add two matrix using multi-dimensional arrays. The matrix has a row and column arrangement of its elements. A matrix with m rows and n columns can be called as m × n matrix. Individual entries in the matrix are called element and ... Read More

Java Program to Interchange the Diagonals

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 09:32:22

143 Views

In this article, we will understand how to interchange the diagonals. The matrix has a row and column arrangement of its elements. A matrix with m rows and n columns can be called as m × n matrix.Individual entries in the matrix are called element and can be represented by ... Read More

Java Program to Interchange Elements of First and Last in a Matrix Across Columns

AmitDiwan

AmitDiwan

Updated on 29-Mar-2022 09:23:17

472 Views

In this article, we will understand how to interchange elements of first and last in a matrix across columns. The matrix has a row and column arrangement of its elements. A matrix with m rows and n columns can be called as m × n matrix.Individual entries in the matrix ... Read More

Advertisements