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

Java Arrays and Methods Guide

Uploaded by

davidwalll96
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)
2 views1 page

Java Arrays and Methods Guide

Uploaded by

davidwalll96
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

Topic: Arrays in Java.

1.​ Take a array input from console


2.​ Find the sum of numbers in an array.
3.​ Copy one array values to the other
4.​ Find the even numbers in an array.
5.​ Find the sum of odd numbers in an array
6.​ Find the odd and even numbers in an array and save them in two different arrays.
7.​ Add two 2D arrays, the sizes and value of which are taken input from console

Topic: Methods in Java.

Write a Java program


1.​ to check whether a number is even or odd using a method.
2.​ to find the power of any number using a method.
3.​ to check whether a number is palindrome or not using method
4.​ to find the multiplication and summation of two matrices using 2 different methods.(sizes of
matrices and inputs into the matrices from console)
5.​ to find the sum of numbers in a 2D array using a method. (Array should be passed from main
method)

You might also like