Search:

Type: Posts; User: helloworld922

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    2,846

    Re: ARRAYLIST

    You have to declare the variable and set it with the result you get from using the Random class.
  2. Replies
    4
    Views
    2,846

    Re: ARRAYLIST

    You need to actually generate the random number and only print out the specific element.

    To generate a random number:
    Random Class

    To print out a specific element of an array list:
    ...
Results 1 to 2 of 2