Startertutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Java program to reverse the array inplace

Categories: Arrays. 2 Comments on Java program to reverse the array inplace

In this article we will learn to implement a Java program to reverse the array. A Java program is provided below which reverses an array in-place (without using extra memory).   Subscribe to our monthly newsletter. Get notified about latest articles, offers and contests. Email address: Leave this field empty if you’re human: Following program […]

Read the rest of this entry »

Java program to find the maximum and minimum value of an array

Categories: Arrays. No Comments on Java program to find the maximum and minimum value of an array

In this article we will learn to implement a Java program to find the maximum and minimum value of an array. A java program is provided below which reads array elements from the user and finds out the maximum, minimum elements in the array.   Subscribe to our monthly newsletter. Get notified about latest articles, […]

Read the rest of this entry »

Java program for matrix multiplication and matrix transpose

Categories: Arrays. No Comments on Java program for matrix multiplication and matrix transpose

In this article we will learn to implement a Java program for matrix multiplication and matrix transpose. A Java program is provided below to check the compatibility for multiplication, if compatible, multiplies two matrices and also finds its transpose. import java.util.Scanner; class Matrix { void matrixMul(int m, int n, int p, int q) { int[][] […]

Read the rest of this entry »

Basic array programs in Java

Categories: Arrays. No Comments on Basic array programs in Java

In this post we are going to look at some very basic and frequently asked array programs in Java interviews . Different programs are written as separate functions in the class ArrayClass. These programs are restricted to integers. Following programs are available: Subscribe to our monthly newsletter. Get notified about latest articles, offers and contests. Email […]

Read the rest of this entry »