PLEASE HELP ASAP!!

Write a method called getLastElement that returns the last element of the given array.
In the main method, call the 'getLastElement method and print the results.
Your output should be the following:
The final unit circle value is 7.85

PLEASE HELP ASAP Write a method called getLastElement that returns the last element of the given array In the main method call the getLastElement method and pri class=