My java code 02-02-2015, 11:10 AM
#1
I started learning java here some code I wrote.
Code:
1| String[][] usernames= {
2| {"Blunt", "Eclipse", " Oni"},
3| {"Tarew", " Master", " Lux"}
4| };
5|
6| String[][] amount= {
7| {"86", "59", "46"}
8| };
9|
10| String and = " and ";
11| String has = " has ";
12|
13| System.out.println("Richest users are " +usernames[0][1] +and + usernames[1][1]);
14| System.out.println(usernames[0][1] +has + amount[0][0]);
15| System.out.println(usernames[1][1] +has + amount[0][1]);
16| };
Code:
Richest users are Eclipse and Master
Eclipse has 86
Master has 59
(This post was last modified: 02-02-2015, 11:16 AM by Master.)
![[Image: master645.png]](http://pile.randimg.net/1/62/78105/master645.png)
“Life before death, strength before weakness, journey before destination.” ― The Way of Kings by Brandon Sanderson