Skip to content

Latest commit

 

History

History
 
 

29.Chapter_6_Practice_Set

Java Tutorial: Practice Questions on Arrays in Java

Question 1. Create an array of 5 floats and calculate their sum.

Question 2. Write a program to find out whether a given integer is present in an array or not.

Question 3. Calculate the average marks from an array containing marks of all students in physics using a for-each loop.

Question 4. Create a Java program to add two matrices of size 2x3.

Question 5. Write a Java program to reverse an array.

Question 6. Write a Java program to find the maximum and minimum element in an array.

Question 7. Write a Java program to find whether an array is sorted or not.

Handwritten Notes: Click to Download

Ultimate Java Cheatsheet: Click To Download