public class App {
public static void main(String[] args) {
// tablou 1D
int[] values = {3, 5, 2343};
// Avem nevoie doar de un index ca sa accesam valoarea.
System.out.println(values[2]);
// tablou 2D
int[][] grid = {
{3, 5, 2343},
{2, 4},
{1, 2, 3, 4}
};
// Avem nevoie de doi indecsi ca sa accesam valoarea
System.out.println(grid[1][1]);
System.out.println(grid[0][2]);
// Creare fara initializare
String[][] texts = new String[2][3];
texts[0][1] = "Buna acolo";
System.out.println(texts[0][1]);
// Cum navigam printr-un tablou 2D
// intai navigam printre randuri, apoi pt fiecare rand
// mergem prin coloane.
for(int row=0; row < grid.length; row++) {
for(int col=0; col < grid[row].length; col++) {
System.out.print(grid[row][col] + "\t");
}
System.out.println();
}
// Ultimul index al tabloului este optional.
String[][] words = new String[2][];
// Fiecare sub-array este null.
System.out.println(words[0]);
// Putem crea subarrays 'manual'.
words[0] = new String[3];
// Putem seta o valuare in sub-array-ul
// pe care l-am creat.
words[0][1] = "buna acolo";
System.out.println(words[0][1]);
}
}
Output is:
2343
4
2343
Buna acolo
3 5 2343
2 4
1 2 3 4
null
buna acolo
Tadalafil Tablet: MaxPillsForMen.com – Generic Cialis price
вывод btc на рубли – обменять ltc, обменник бестчендж
https://fastpillseasy.com/# edmeds
http://fastpillseasy.com/# where can i buy ed pills
частная скорая наркологическая помощь частная скорая наркологическая помощь .
наркологическая скорая бесплатная наркологическая скорая бесплатная .
http://maxpillsformen.com/# buy cialis pill
where to buy erectile dysfunction pills: erectile dysfunction pills online – ed treatments online
купить диплом специалиста
I need to save this post and show it to everyone I know, because it is really important https://000-google-09.s3.eu-north-1.amazonaws.com/id-10.html
Like 6321
index https://web-kaspawallet.com
like it https://abacusmarket.me/
наркологическая скорая в москве https://klin.0pk.me/viewtopic.php?id=4428 .
In the modern world, such posts are becoming increasingly relevant and important for everyone https://000-google-09.s3.eu-north-1.amazonaws.com/id-10.html
Like 817
ferma cc – купить usdt за рубли, ferma bestchange
Generic Tadalafil 20mg price: Max Pills For Men – Cialis 20mg price
http://fastpillseasy.com/# buy erectile dysfunction treatment
Buy Tadalafil 20mg buy cialis online Cheap Cialis
https://fastpillsformen.com/# Viagra online price
http://fastpillseasy.com/# best online ed medication
advice https://myjaxxwallet.us/
erectile dysfunction meds online FastPillsEasy best online ed pills
http://fastpillseasy.com/# ed meds on line
Generic Cialis price Cialis without a doctor prescription Generic Cialis price
uncensored and English sub JAV https://mythav.com/
Cheap Cialis: buy cialis online – Buy Tadalafil 10mg
ed online prescription fast pills easy best online ed meds
http://fastpillsformen.com/# sildenafil online
Buy Tadalafil 10mg: buy cialis online – Tadalafil Tablet
best buy hacliknk instagram goread services.
https://fastpillsformen.com/# Cheapest Sildenafil online
http://maxpillsformen.com/# Cialis 20mg price in USA
low cost ed meds online best online ed pills best online ed medication
breakingbad forum – breaking bad marketplace, BBGate Free Sample
http://fastpillsformen.com/# Sildenafil 100mg price
https://maxpillsformen.com/# Cialis without a doctor prescription
Tadalafil price: Cialis 20mg price – buy cialis pill
find https://web-kaspawallet.com/
Your article helped me a lot, is there any more related content? Thanks!
try this web-site https://abacusmarket.me
you can try here https://web-sollet.com/
cheapest ed meds: fast pills easy – п»їed pills online
buy Viagra over the counter FastPillsForMen.com sildenafil 50 mg price
http://maxpillsformen.com/# Cialis without a doctor prescription
Возможно ли купить диплом стоматолога, и как это происходит
https://fastpillseasy.com/# cheapest erectile dysfunction pills
http://fastpillseasy.com/# cheap ed treatment
Cheap generic Viagra online: FastPillsForMen.com – best price for viagra 100mg
bs2web run – ссылка на блекспрут bs site biz, блекспрут bs2tor nl
This Site https://web-kaspawallet.com