Hi

 

I am new to java ( taking a class now ) and I need to solve this problem below: Can you please help me?

 

I am using eclipse and I typed this but I don't know if it is right. English is not my native language so I am always confused about instructions

public class random {

 

    public static void main(String[] args) {

       

        int i1 = 1;

        int i2 = 10;

       

        int m = (int)(i2*Math.random() )+ i1;

        int n = (int)(i2*Math.random() )+ i1;

       

        System.out.println(m);

        System.out.print(n);

 

thank you very much

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners