0% found this document useful (0 votes)
5 views1 page

Java Pgms

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Java Pgms

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Amrita School of Engineering - Chennai Campus

19AIE105 – Object Oriented Paradigm


JAVA Practise Set - Arrays
CSE AI Date: 04 Dec 2020
Sem: 1

1. Write a program to find the maximum and minimum element from an array
of n elements.
2. Write a Java program to find the common elements between two arrays
3. Write a Java program to add two matrices of the same size.
4. Write a Java program to test if an array contains a specific value.
5. Write a java program to do matrix multiplication.
6. Write a Java program to remove the duplicate elements of a given array
and return the new length of the array.
Sample array: [20, 20, 30, 40, 50, 50, 50]
After removing the duplicate elements, the program should return 4 as the
new length of the array.
7. Write a Java program to separate even and odd numbers of a given array
of integers. Put all even numbers first, and then odd numbers.
8. Java Program to Find the Number of Non-Repeated Elements in an Array.
9. Given an array containing 0s and 1s, write a Java Program to Segregate 0s
on Left Side & 1s on Right Side of the Array
10.Java Program to Print All the Repeated Numbers with Frequency in an
Array.
11.Java Program to Display Transpose Matrix

------------------------------------------------------

You might also like