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
https://mexicoph24.life/# buying from online mexican pharmacy
india pharmacy mail order: Generic Medicine India to USA – cheapest online pharmacy india
indian pharmacy online [url=http://indiaph24.store/#]buy medicines from India[/url] indian pharmacy paypal
http://mexicoph24.life/# buying prescription drugs in mexico online
Промокод BetWinner- 937999. Новые пользователи букмекерской компании Betwinner могут воспользоваться приветственным бонусом в размере 100% от суммы депозита до €100 (или эквивалентной суммы в другой валюте). Фрибеты в БетВиннер чаще появляются в рамках периодических акций. Иногда такая привилегия касается новых игроков, но чаще всего поощрение получают постоянные.
https://vsiknygy.net.ua/wp-content/pages/betwinner_promokod_2020.html
https://indiaph24.store/# best online pharmacy india