Write a method that takes in an integer, n, and stores the first five positive, even numbers into an array starting from
Posted: Thu May 05, 2022 1:15 pm
Write a method that takes in an integer, n, and stores the first
five positive, even numbers into an array starting from n. Your
choice if you want to have the array as a parameter in your method,
OR if you want to create the array inside your method. Your return
type may be different depending on what you choose. a. Write
another method that displays the array backwards. b. Call the first
method in the main method. c. Call the second method in the main
method.
This is in java.
This question is very confusing someone please help
five positive, even numbers into an array starting from n. Your
choice if you want to have the array as a parameter in your method,
OR if you want to create the array inside your method. Your return
type may be different depending on what you choose. a. Write
another method that displays the array backwards. b. Call the first
method in the main method. c. Call the second method in the main
method.
This is in java.
This question is very confusing someone please help