maximum element in array

In this article, we are going to find maximum element in array using java code. Example:- If n=4(size of an array) arr={45,8,9,4}, then the output will be 45. Steps:- Java code to print maximum element in array. Output:- You can use the same logic to print maximum element in an array using other programing languages … Read more