Java Tek Boyutlu Diziler
Java tek boyutlu diziler örnek
KOD;
String ArabaMarkalari[]=new String[15];
ArabaMarkalari[0]="BMW";
ArabaMarkalari[1]="MERCEDES";
ArabaMarkalari[2]="TOFAŞ";
ArabaMarkalari[3]="FİAT";
ArabaMarkalari[4]="FERRARİ";
ArabaMarkalari[5]="RENAULT";
ArabaMarkalari[6]="FORD";
ArabaMarkalari[7]="SKODA";
ArabaMarkalari[8]="PORSCHE";
ArabaMarkalari[9]="BUGATTİ";
ArabaMarkalari[10]="SAAB";
ArabaMarkalari[11]="OPEL";
ArabaMarkalari[12]="HONDA";
ArabaMarkalari[13]="HYUNDAİ";
ArabaMarkalari[14]="DODGE";
JOptionPane.showMessageDialog(null,"Araba Markaları" + "n" + ArabaMarkalari[0] + "n" +
ArabaMarkalari[1] + "n" + ArabaMarkalari[2] + "n" + ArabaMarkalari[3] + "n" +
ArabaMarkalari[4] + "n" + ArabaMarkalari[5] + "n" + ArabaMarkalari[6] + "n" +
ArabaMarkalari[7] + "n" + ArabaMarkalari[8] + "n" + ArabaMarkalari[9] + "n" +
ArabaMarkalari[10] + "n" + ArabaMarkalari[11] + "n" + ArabaMarkalari[12] + "n" +
ArabaMarkalari[13] + "n" + ArabaMarkalari[14] );
}
}
ArabaMarkalari[0]="BMW";
ArabaMarkalari[1]="MERCEDES";
ArabaMarkalari[2]="TOFAŞ";
ArabaMarkalari[3]="FİAT";
ArabaMarkalari[4]="FERRARİ";
ArabaMarkalari[5]="RENAULT";
ArabaMarkalari[6]="FORD";
ArabaMarkalari[7]="SKODA";
ArabaMarkalari[8]="PORSCHE";
ArabaMarkalari[9]="BUGATTİ";
ArabaMarkalari[10]="SAAB";
ArabaMarkalari[11]="OPEL";
ArabaMarkalari[12]="HONDA";
ArabaMarkalari[13]="HYUNDAİ";
ArabaMarkalari[14]="DODGE";
JOptionPane.showMessageDialog(null,"Araba Markaları" + "n" + ArabaMarkalari[0] + "n" +
ArabaMarkalari[1] + "n" + ArabaMarkalari[2] + "n" + ArabaMarkalari[3] + "n" +
ArabaMarkalari[4] + "n" + ArabaMarkalari[5] + "n" + ArabaMarkalari[6] + "n" +
ArabaMarkalari[7] + "n" + ArabaMarkalari[8] + "n" + ArabaMarkalari[9] + "n" +
ArabaMarkalari[10] + "n" + ArabaMarkalari[11] + "n" + ArabaMarkalari[12] + "n" +
ArabaMarkalari[13] + "n" + ArabaMarkalari[14] );
}
}
KODUN ÇIKIŞI ;
Aygün Kartal
Yorumunuzu Ekleyin