Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


My java code filter_list
Author
Message
My java code #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

[Image: 3wiRj+]
(This post was last modified: 02-02-2015, 11:16 AM by Master.)
[Image: master645.png]

Life before death, strength before weakness, journey before destination.” ― The Way of Kings by Brandon Sanderson

Reply





Messages In This Thread
My java code - by Master - 02-02-2015, 11:10 AM
RE: My java code - by ねこまっしぐら - 02-02-2015, 01:28 PM
RE: My java code - by Alex - 02-02-2015, 01:32 PM
RE: My java code - by Blunt - 02-02-2015, 02:50 PM
RE: My java code - by Eclipse - 02-02-2015, 08:59 PM
RE: My java code - by Master - 02-02-2015, 09:28 PM
RE: My java code - by Eclipse - 02-02-2015, 10:37 PM
RE: My java code - by phyrrus9 - 02-03-2015, 12:45 AM
RE: My java code - by m1kep - 02-11-2015, 09:05 AM
RE: My java code - by Strawberry - 02-28-2015, 05:40 AM
RE: My java code - by Master - 02-28-2015, 11:26 AM
RE: My java code - by Strawberry - 02-28-2015, 02:37 PM



Users browsing this thread: 1 Guest(s)