→ neverfly:System.out.println(Math.round(Math.random()*46)); 07/08 13:29
System.out.println(Math.round());
System.out.println(Math.random());
我要把以上這兩行給合併並且乘上46,該如何打?
我怎麼打都編譯失敗...
System.out.println(Math.round(random()*46));
這樣錯在哪??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 36.237.164.42