Java programs (Page 3/15)

transpose of a matrix in java without using second matrix

Let’s learn transpose of a matrix in java without using second matrix. Transpose of a matrix in java without using second matrix Here’s the program…

Read More

Transpose of a matrix in java using BufferedReader

Let’s learn transpose of a matrix in java using BufferedReader. Transpose of a matrix in java using BufferedReader Here’s the transpose of a matrix using…

Read More

Java program to find trace of a matrix

Let’s learn java program to find trace of a matrix. Java program to find trace of a matrix Trace of a matrix is nothing but…

Read More

Java program to print 3×3 matrix

Let’s learn java program to print 3×3 matrix. Java program to print 3×3 matrix Here’s 3×3 matrix in java example. import java.io.BufferedReader; import java.io.IOException; import…

Read More

Leap year using conditional operator in java

Let’s learn leap year using conditional operator in java. Leap year using conditional operator in java Here first we have to read value from user…

Read More

String to hexadecimal in java

Let’s learn string to hexadecimal in java. String to hexadecimal in java To convert a string to hexadecimal first get input from user using next()…

Read More

Java program to write to text file

Let’s learn java program to write to text file. Java program to write to text file To write into a text file use FileWriter class….

Read More

Create directory with permissions in java

Let’s learn create directory with permissions in java. Create directory with permissions in java To create directory with permissions use PosixFilePermissions. NOTE: PosixFilePermissions class cannot…

Read More

How to check if a directory exists in java

Let’s learn how to check if a directory exists in java. How to check if a directory exists in java To check if directory exists…

Read More

Convert binary to decimal in java using recursion

Let’s learn convert binary to decimal in java using recursion. Convert binary to decimal in java using recursion Now let’s learn recursive program to convert…

Read More