int [] shoeSizeAvailable = new int [3];
Inıtialize elements in an array
shoeSizeAvailable [0] = 5;
shoeSizeAvailable [1] = 3;
shoeSizeAvailable [2] = 7;
Access elemets in an array
shoesSizesAvailable[0];
shoesSizesAvailable[1];
shoesSizesAvailable[2];
SORU
int[] soccerTeam = new int[11]; | |
soccerTeam[0] = 5; | |
soccerTeam[10] = 1; | |
soccerTeam[4] = 23; | |
soccerTeam[1] = 10; |
0 1 2 3 4 5 6 7 8 9 10
5 10 [] [] 2 [] [] [] [] [] 1
Log.v ("Log of the Numbers Activity", "Dizi indexi [0]: " + words [0]);
Hiç yorum yok:
Yorum Gönder