Пропустить
Текущие дата и время: 19 марта 2025, 19:51:00
DmitryS » 16 февраля 2013, 10:25
public double distance(Point that) {double xdiff, ydiff;xdiff = x — that.x;ydiff = y — that.y;return Math.sqrt(xdiff * xdiff + ydiff * ydiff);}class SimpleLookup implements Lookup {private String[] Names;private Object[] Values;public Object find(String name) {for (int i = 0; i < Names.length; i++) {if (Names[i].equals(name))return Values[i];}return null;}// . . .}
Вернуться в Документация, справочники
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 7