Search:

Type: Posts; User: gonfreecks

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    2,165

    Re: random numbers in array please help

    o ok overlooked the equal sign sorry....
    and thank you.. and uhm 1 more thing, how can i align the arrays?
    is there a command like printf for arrays?
  2. Replies
    5
    Views
    2,165

    Re: random numbers in array please help

    thanks so much its working now but i dont get why an error keeps popping..

    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10
    at lab8.Arrays.main(Arrays.java:35)
    ...
  3. Replies
    5
    Views
    2,165

    random numbers in array please help

    public class Arrays {
    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);

    int x, y =0;
    int [] list;
    list = new int [10];
    int [] list2;
    list2 = new...
Results 1 to 3 of 3