|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Jun 2005
Città: CH
Messaggi: 1058
|
SetMatrice
scusate una domanda ho un'array bidimensionale e dovrei creare un metodo setMatrice in qui io basso una coordinata tipo x[x][y] = 0 e mi setta nella matrice[x][y] a 0
private int[][] matrice; matrice = new int[10][10]; |
|
|
|
|
|
#2 | |
|
Senior Member
Iscritto dal: Nov 2005
Città: TO
Messaggi: 5206
|
Quote:
Codice:
public void setElement (int y, int x, int value) {
matrice[y][x] = value;
}
__________________
Andrea, SCJP 5 (91%) - SCWCD 5 (94%) |
|
|
|
|
|
|
#3 | |
|
Senior Member
Iscritto dal: Jun 2005
Città: CH
Messaggi: 1058
|
Quote:
Thx, che mmm che nn ciò pensato ..... vabbe no andbin no dev |
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:53.




















