<pre id=\"best-answer-content\" class=\"reply-text mb10\">public class ArrayMax {
public static void main(String[] args) {
// TODO Auto-generated method stub
int max = 0;
int array[] = { 12, 1, 3, 9, 21, 25, 99, 37, 11, 2 };
for (int i = 0; iarray.length; i) {
if (arraymax) {
max = array;
}
}
System.out.println(max);
}
} |