Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
How to convert number into object?
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.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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);

}

}

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!