in an array, other than looping?
Answer :
var myArray:Array = [2,3,3,4,2,2,5,6,7,2];
myArray.sort(Array.NUMERIC);
var minValue:int = myArray[0];
var maxValue:int = myArray[myArray.length-1]
Answer :
var myArray:Array = [2,3,3,4,2,2,5,6,7,2];
myArray.sort(Array.NUMERIC);
var minValue:int = myArray[0];
var maxValue:int = myArray[myArray.length-1]
No comments:
Post a Comment