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.
Home » Programming » Java » Programs » Arrays

Java program to reverse the array inplace

Suryateja Pericherla 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).   Following program reads an array of elements and reverses the array in place i.e., without using any temporary array: import java.util.Scanner; public class Driver […]

Read the rest of this entry »

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

Suryateja Pericherla 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.   Program is as follows: import java.util.Scanner; public class Driver { […]

Read the rest of this entry »

Java program for matrix multiplication and matrix transpose

Suryateja Pericherla 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

Suryateja Pericherla 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: Reading elements into an array Printing elements in an array Printing the sum of […]

Read the rest of this entry »
Facebook
Twitter
Pinterest
Youtube
Instagram
Blogarama - Blog Directory