News

1.It reads a number N. // 2.Take Another N numbers as input and store them in an Array. // 3.Reverse the elements in the Array. // 4.Print the reversed Array. // Input Format // First-line contains a ...
As noted in the comments, Java arrays employ C-like zero-based indexes and so using an index of 0 obtains the first element. /** * Extract the first element from the provided List of Strings.