Domanda di colloquio di Nextlabs

1. Implement the following function: int findMax(int[] items) { }

Risposta di colloquio

Anonimo

12 gen 2012

int findMax(int[] items) { int maxValue = items[0]; for(int i=1;i maxValue){ maxValue = items[i]; } } system.out.println(maxValu); }