Mr. Satyabrata has Published 175 Articles

How to Check Orientation of 3 Ordered Points in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 10-Mar-2023 16:36:28

In this article we are going to find the orientation of 3 ordered points. Here orientation means that the given points form clockwise, anticlockwise or collinear shape in space. In the above diagram a, b, c are the three points which check the orientation of shape in space. We find ... Read More

Rotate the matrix 180 degree in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 09-Mar-2023 12:13:59

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. As per the problem statement we have to rotate the given matrix to 180 degrees. ... Read More

Replace the Matrix Elements by Its Square in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 09-Mar-2023 12:07:03

Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is replace the matrix elements by its square. Let’s deep ... Read More

How to Get File Owner’s Name in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 09-Mar-2023 12:02:15

As per the problem statement, we are going to find the file owner name in Java. The owner’s name here represents the owner of the PC in which file is being runned. To find the file owner in Java we will use the getOwner() method of the FileOwnerAttributeView class. FileOwnerAttributeView ... Read More

How to Homogenize a Point in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 09-Mar-2023 11:59:15

In this article we will see how to homogenize a point. Any point in the projective plane is represented by a triple (X, Y, Z), called homogeneous coordinates or projective coordinates of the point, where X, Y and Z are not all 0. The point represented by a given set ... Read More

How to Find Single Digit Array Elements in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 09-Mar-2023 11:21:50

In a given array with some random integer values, we have to find out the single digits available in the given array and print those single digit values as output. An array can contain positive or negative numbers irrespective of the number of digits in a number. As here all ... Read More

Find Number of Sorted Rows in a Matrix in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 06-Mar-2023 17:26:21

Matrices are nothing but a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is to count all the rows in a matrix that are sorted either ... Read More

Find Minimum Elements in Each Row of Matrix in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 06-Mar-2023 16:48:47

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. As per the problem statement we have to find the minimum element present in every ... Read More

Convert Hexadecimal to Octal in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 06-Mar-2023 16:39:26

Octal Number − Octal number is also one of the number systems available. The octal number is represented with 8 digits which is from 0 to 7(0, 1, 2, 3... 7). The Octal numbers are expressed as base-8 in the numeral system. Hexadecimal Number − Hexadecimal number is also one ... Read More

Check if a Matrix is Involutory or not in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 06-Mar-2023 15:55:54

Matrices are nothing but a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. Involutory matrix is a square matrix which when multiplied by itself, gives back an identity matrix. Identity matrix is a ... Read More

1 2 3 4 5 ... 18 Next
Advertisements