Question: JAVA Write a method called words that takes a String array as an input, and prints the first and last element of that array. main
JAVA

Write a method called words that takes a String array as an input, and prints the first and last element of that array. main should take the elements of the array from the user, prints the array and call the method. Constraints - array size is 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
