Вход на сайт
Пинайте
598 просмотров
Перейти к просмотру всей ветки
scorpi_ скептик
в ответ voxel3d 28.06.06 13:39
Поясняю насч╦т форматирования: в Эклипсе я могу вбить такой текст:
нажать Ctrl+Shift+F и получить
В Эмаксе я наш╦л только indentation...
В ответ на:
private int computeArrayIndex( int row, int column ) throws ArrayIndexOutOfBoundsException
{if(row>=dimension_||row<0||column>=dimension_||column<0)throw new ArrayIndexOutOfBoundsException();
return (row>column)?computeArrayIndex(column,row):column+row*dimension_-row*(row+1)/2;}
нажать Ctrl+Shift+F и получить
В ответ на:
private int computeArrayIndex( int row, int column ) throws ArrayIndexOutOfBoundsException {
if ( row >= dimension_ || row < 0 || column >= dimension_ || column < 0 )
throw new ArrayIndexOutOfBoundsException();
return ( row > column ) ? computeArrayIndex( column, row ) : column + row * dimension_ - row * ( row + 1 ) / 2;
}
В Эмаксе я наш╦л только indentation...