I got this to work using a place holder that would increment each iteration of the outer for-loop.
...
Type: Posts; User: Mitch1337
I got this to work using a place holder that would increment each iteration of the outer for-loop.
...
You have a good start here. A couple things to consider: Since you don't know how many recipes they may enter, and Array may not be a good choice. An ArrayList may suit this better. Secondly, you...
Your problem is here:
maxGrade = scan.nextInt ();
minGrade = scan.nextInt ();
The counter is not increased for the first two lines you read. I would set the maxGrade to 0, and minGrade to...
Do some more research on Overriding & Overloading methods in Java.
Overriding is done when a subclass has the same method name & signature as the parent class, therefore replacing it. To call the...
To use the AND and OR operators in java, you need to write them as (&&) and ( || ).
I haven't looked over the entirety of your code, as i am a bit pressed on time. What i have found though is that you did not override the toString() method of the Account class. So automatically,...
Why don't you show us how you've started, and we can further assist you based on that.
Welcome to the forums, I am new myself but will do my best to help with any questions.
Should have done that, very good point Norm.
First off, your first and second arrays contain 4 indexes each. The merged should then contain only 8, not 10.
Secondly,
arrayone[] = Integer.parseInt(dataIn.readLine()); // cannot resolve...