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
farmacia online internacional: farmacia barata – farmacias online seguras en espaГ±a
Hello to every one, it’s really a pleasant for me to visit this website, it contains helpful Information.
http://farmaciabarata.pro/# farmacia online madrid
http://pharmacieenligne.icu/# pharmacie ouverte
Every weekend i used to visit this site, because i want enjoyment, for the reason that this this web
page conations in fact fastidious funny material too.
I would like to thank you for the efforts you have put in writing this blog.
I really hope to view the same high-grade blog posts by you in the future as well.
In truth, your creative writing abilities has motivated me to get my own, personal website now 😉
My brother recommended I would possibly like this website.
He used to be entirely right. This post actually made my
day. You can not believe just how much time I had spent for this information! Thanks!
Excellent post. I am dealing with some of these issues as
well..
Hello there! Do you use Twitter? I’d like to follow you if that would be ok. I’m undoubtedly enjoying your blog and look forward to new updates.
how much amoxicillin for strep throat can i take tums with amoxicillin amoxicillin rash after 7 days
Dorothy He wants to talk frankly with you and show you something, you will like it. Click Here: http://www.google.com/amp/s/teens.page.link/go
I have read a few good stuff here. Definitely worth
bookmarking for revisiting. I wonder how a lot attempt you set to make such a fantastic informative web site.
Very quickly this website will be famous among all blogging people, due to it’s pleasant articles or reviews
Pharmacie en ligne France: Acheter mГ©dicaments sans ordonnance sur internet – Pharmacie en ligne France
Excellent post. I definitely love this website. Continue the good work!
Leah He wants to talk frankly with you and show you something, you will like it. Click Here: http://www.google.com/amp/s/teens.page.link/go
http://pharmacieenligne.icu/# п»їpharmacie en ligne
http://pharmacieenligne.icu/# pharmacie ouverte 24/24
Keep this going please, great job!
http://pharmacieenligne.icu/# Pharmacie en ligne livraison gratuite
Do you have a spam problem on this website; I also am a blogger, and I
was wondering your situation; many of us have created some nice methods and we are looking to swap techniques with others, be sure to shoot me an email if interested.
Its like you read my mind! You seem to know so much about this, like you wrote
the book in it or something. I think that you could do with a few pics to drive the message home a bit,
but other than that, this is fantastic blog. A great read. I will certainly
be back.
I am genuinely delighted to read this blog posts
which carries lots of valuable facts, thanks for providing these kinds
of data.
My brother recommended I would possibly like this web site.
He used to be entirely right. This put up truly made my day.
You can not believe simply how a lot time I had spent for this info!
Thank you!
Good day I am so excited I found your website, I really found you by error, while I was looking on Aol for something else, Anyhow I am here now and would just
like to say thank you for a fantastic post and a all round interesting
blog (I also love the theme/design), I don’t have time to go through it
all at the minute but I have saved it and also included your RSS feeds, so when I have time I will be back to read a
lot more, Please do keep up the great work.
Heya! I know this is somewhat off-topic however I had to ask.
Does building a well-established blog such as yours take
a large amount of work? I am brand new to
operating a blog however I do write in my journal on a daily basis.
I’d like to start a blog so I will be able to share my personal
experience and feelings online. Please let me know if you have any kind of recommendations or tips for brand new aspiring blog owners.
Appreciate it!
I’m really loving the theme/design of your web site.
Do you ever run into any web browser compatibility problems?
A small number of my blog visitors have complained about my site not operating correctly in Explorer but looks great in Firefox.
Do you have any suggestions to help fix this problem?
This site truly has all of the information I wanted about this subject and didn’t know who to ask.
acquisto farmaci con ricetta: farmacia online piГ№ conveniente – farmacie online sicure
http://farmaciabarata.pro/# farmacia envГos internacionales
acquisto farmaci con ricetta: acquisto farmaci con ricetta – farmacia online miglior prezzo
An impressive share! I have just forwarded this onto a friend who has been conducting
a little research on this. And he in fact bought me dinner simply because I found it for him…
lol. So allow me to reword this…. Thanks for the meal!!
But yeah, thanks for spending the time to talk about this subject here on your blog.
It’s going to be end of mine day, but before end I am reading this wonderful piece of writing to increase my experience.
http://onlineapotheke.tech/# online apotheke preisvergleich
http://farmaciaonline.men/# farmacia online
We stumbled over here by a different website and thought I should check things out.
I like what I see so i am just following you.
Look forward to finding out about your web page for
a second time.
acheter mГ©dicaments Г l’Г©tranger: Pharmacies en ligne certifiГ©es – Pharmacie en ligne sans ordonnance
Hey there, I think your blog might be having browser compatibility issues. When I look at your blog site in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!
Hello there! I could have sworn I’ve been to your blog before but after looking at
many of the posts I realized it’s new to me. Nonetheless,
I’m definitely delighted I discovered it and I’ll be
bookmarking it and checking back frequently!
https://farmaciabarata.pro/# farmacia envГos internacionales
farmacia online acquistare farmaci senza ricetta farmacie online affidabili
Do you mind if I quote a few of your articles as long as I provide credit and sources back to your blog?
My blog is in the exact same niche as yours and my users would genuinely benefit from some of the information you provide here.
Please let me know if this ok with you. Thanks a lot!
Hi, Neat post. There’s an issue with your website in internet explorer, would test
this? IE still is the marketplace leader and a big part of folks will leave out your great writing due to this problem.
It’s very simple to find out any topic on web as compared to books, as I found this paragraph at this site.
Ограбление из будущего
Pharmacie en ligne France: Pharmacie en ligne fiable – Pharmacie en ligne livraison rapide
http://farmaciaonline.men/# farmacie online autorizzate elenco
comprare farmaci online con ricetta: acquisto farmaci con ricetta – farmaci senza ricetta elenco
Hello there! Do you know if they make any plugins to safeguard against
hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any
suggestions?
This is my first time pay a quick visit at here and
i am in fact pleassant to read all at single place.