+1 " , , . , , ".
, :
static int[] sort3(int a, int b, int c) {
return
(a > b) ? sort3(b, a, c) :
(b > c) ? sort3(a, c, b) :
new int[] { a, b, c };
}
, , " Java", ... , , , ...
, ( - ...). , , javadoc unit... , , ... , , , , , ...
, , , , ... , .
, , , , - :
public static int[] sort(Integer... intValues) {
ArrayList list = new ArrayList(
for ( Integer i : intValues ) {
list.add(i);
}
Collections.sort(list);
return list.toArray();
}
, java >= 1.5, 1 n ...
, , ++ asm:)