Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

1 Visitor Messages

  1. Hi, Im a pretty new to Java, and im taking a course in school right now...Im working on a MAZE generator and for my maze generator i have written a shuffle method, to shuffle and pick a side randomly to bring the wall down....but it seems like my shuffle method is not complete and i dono what to do...can anyone help me ???


    public void shuffle()
    {
    Random random = new Random();
    int[] listArray = new int[] {0,1,2,3};
    for (int i=0; i<listArray.length; i++)
    {
    int randomNum = random.nextInt(listArray.length -1);
    int temp = listArray[i];
    }
    }
Showing Visitor Messages 1 to 1 of 1
About Evelina

Basic Information

Statistics


Total Posts
Total Posts
1
Posts Per Day
0.00
Visitor Messages
Total Messages
1
Most Recent Message
July 11th, 2011 09:30 PM
Total Thanks
Total Thanks
0
  • Thanked 0 Times in 0 Posts
General Information
Last Activity
July 11th, 2011 10:00 PM
Join Date
October 12th, 2010