I assume you mean in this thread.
:-bd
If you have a new question ,depending on how related it is to the topic of the current thread, you may want to make a new thread, maybe not, but in...
Type: Posts; User: jps
I assume you mean in this thread.
:-bd
If you have a new question ,depending on how related it is to the topic of the current thread, you may want to make a new thread, maybe not, but in...
Read my post #7. Have you fixed either of the two problems there? If so please post updated code and new questions. If not, see below:
Do you see how the first if statement will block the...
So do you still have a question? If so, what is it?
The snippet you posted in #8 looks fine if it does what you intended for it to do
static String pull()
{
double pull = Math.random();
if (pull >= 0.25d)
{
return "BAR";
}
else if (pull >= 0.25d)
{
return "7";
Post everything just like you did in your first post. Ctrl+a to select all, Ctrl+v to copy, and once back in here, Ctrl+v to paste. Don't try to attach them as files. I (and many others) are just too...
Scanner scanner = null;
...
sacanner.nextLine();
how is null going to return anything?
Try initiating the scanner to an instance of Scanner rather than null. Also hit up your favorite search...