You are viewing a single comment's thread. Return to all comments →
JAVA
// Add your code here Difference(int[] num) { elements=num; } void computeDifference(){ Arrays.sort(elements); maximumDifference=elements[elements.length-1]-elements [0]; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 14: Scope
You are viewing a single comment's thread. Return to all comments →
JAVA
// Add your code here Difference(int[] num) { elements=num; } void computeDifference(){ Arrays.sort(elements); maximumDifference=elements[elements.length-1]-elements [0]; }