Question
May 13, 2007 at 02:59 PM
s.kelly

Java Query

by s.kelly . Updated 19 years, 5 months ago

I have an exam this week in college. One of the past MCQ questions is:-

“What is the purpose of (int) in the statement
1 + (int) (Math.random() * 8)”

Any ideas on what the purpose of (int) is here.
Sound.

This discussion is locked

All Comments