RE: My java code 02-28-2015, 02:37 PM
#12
Attempting to compile the following code does not give me any errors.
Code:
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Sinister
{
public static void main (String[] args) throws java.lang.Exception
{
String[][] usernames= {
{"Blunt", "Eclipse", " Oni"},
{"Tarew", " Master", " Lux"}
};
String[][] amount= {
{"86", "59", "46"}
};
System.out.println("Richest users are " +usernames[0][1] + " and " + usernames[1][1]);
System.out.println(usernames[0][1] + " has " + amount[0][0]);
System.out.println(usernames[1][1] + " has " + amount[0][1]);
}
}

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)