#using array to store random num generated
15 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @opal sandal! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
cannot convert from int to int[]
int[] is a array. u have to index it to access the elements in java
int[0] = wompwomp
int [] sixDig = new int [1];
sixDig[0] = (int) (Math.random()*1000000);
i used this and it works
but does that mean this is stored or is it gonna keep generating a new different number
because i want to store the generated number for later when the user is asked to enter the acc number