System.out.println( (int)(Math.random()*8) + 1 ); random integer number in [1,8]
System.out.println( Math.abs( -5 ) ); 5
System.out.println( Math.abs( 6 ) ); 6
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!