Nevermind, I managed to fix my issue by using math.round.
Thanks alot for the quick response & answers to my query.
:)
Later,
Shanse
Type: Posts; User: Shanse
Nevermind, I managed to fix my issue by using math.round.
Thanks alot for the quick response & answers to my query.
:)
Later,
Shanse
Edit: I fixed the issue
However I'm getting decimal answers now with the coding:
double HighestScore = (Math.random () * 5001) + 1;
data [cnt] [2] = Double.toString (HighestScore);
...
Hello, Syed
When I Implement the code:
data [cnt] [2] = (Math.random () * 5001) + 1;
It throws out the following error:
You cannot assign a "double" expression to a "java.lang.String"...
Hello everyone,
I'm a new programmer and thus still suck, I do not even know if I should be posting this here or be able to receive any help.
However, my issue is the following: (Note: I'm...