Thanks aussiemcgr you were a huge help. I have not been introduced yet to dynamic data structures just yet (I'm sure it will be this semester) so I think for now I am just going to loop the array...
Type: Posts; User: vanDarg
Thanks aussiemcgr you were a huge help. I have not been introduced yet to dynamic data structures just yet (I'm sure it will be this semester) so I think for now I am just going to loop the array...
Ok I think I got it. Did you do this a different way? And is there a way to have an infinite amount of random numbers? Otherwise I can just choose a larger number for the size of the array.
...
OK I am having trouble figuring out where the arrays come in. I had them set up but I ended up just using the loop counters instead:
import java.util.Random;
public class dicePrint {
...
Ok, I understand the concept of what needs to be done here. I understand that it will print from left to right, and that I need to use print so that it doesn't automatically start a new line. I also...
Output:
-------
|* *|
| |
|* *|
-------
-------
|* *|
Thanks a ton! This is actually for a class so working through it myself will be much more beneficial...I thought it may have something to do with a nested loop (rows and cols). I will continue to...
I started school for CS last semester and it is awesome. I have been able to get through most of the work with little help. I have a question (which I hope is simple) about printing out five random...