let number = Math.floor(Math.random () * 100)
I want to make this number Object's name
for example:
if number = 56,
It must be
56 = {
// values...
}
I don't know how though.
public class Main {
public static void main(String[] args) {
System.out.println("StackOverflow");
// Convert int to Integer object
Integer output1 = new Integer(100);
System.out.println(output1.toString());
// Convert Integer to int
int output2 = output1.intValue();
System.out.println(output2);
}
}