public class App {
public static void main(String[] args) {
// Declaram tabloul si facem referinta la tipul de date ce il va contine
String[] words = new String[3];
// Atribuim elementele tabloului
words[0] = "Buna";
words[1] = "iti";
words[2] = "spun";
// Accesam un element al tabloului si il afisam
System.out.println(words[2]);
// Declararea si initializarea tabloului cu tipul de date sir de caractere
String[] fruits = {"mere", "pere", "banane", "kiwi"};
for(String fruit: fruits) {
System.out.println(fruit);
}
// Valoarea implicita pt un integer
int value = 0;
// Valoarea implicita pt o referinta este "null"
String text = null;
System.out.println(text);
// Declaram un tablou de siruri
String[] texts = new String[2];
// Referintele la siruri in tablou
// sunt initializate cu tipul "null"
System.out.println(texts[0]);
// Setam o valoare de tip sir babloului
texts[0] = "unu";
}
}
Output is:
spun
mere
pere
banane
kiwi
null
null
After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.儿童色情片
Thank you great posting about essential oil. Hello Administ . 国产线播放免费人成视频播放
canadian pharmacy ltd
order lisinopril online united states
rx online pharmacy
https://medicationnoprescription.pro/# best no prescription online pharmacy
https://edpill.top/# online ed medicine
prednisone for dogs without rx
buy pills without prescription online pharmacy without prescription online pharmacy without a prescription
good online mexican pharmacy
online casinos kenya http://www.casinoonline.co.ke .
synthroid 0.125 mcg
good value pharmacy
online canadian pharmacy coupon: canadian pharmacy no prescription – best no prescription pharmacy
batmanapollo.ru
azithromycin otc usa
Thank you great post. Hello Administ .国产线播放免费人成视频播放