50 POINTS & A FOLLOW!

Which of the following statements contains an error?

(I) int digit = (int) (Math.random() * 10);

(II) lotteryNum = digit;

(III) //System.out.println(lotteryNum);

I only

 II only

 III only

 I and III only

 II and III only

Respuesta :

There is an error in III: println is for print line so it is different from print(lotteryNum).


The answer is III only.


III has a typo: its print...lower case l (L)n; not print...cap I (i)n. ive made the same mistake be4!

I n II look good 2 me


ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE