Search:

Type: Posts; User: Mitch1337

Search: Search took 0.12 seconds.

  1. Re: Trying to get an "if" statement to work in a "for loop".

    I got this to work using a place holder that would increment each iteration of the outer for-loop.



    ...
  2. Replies
    2
    Views
    305

    Re: Recipe Book: Arrays and Objects/Types

    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...
  3. Re: Help fixing my Java program! Reading files

    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...
  4. Replies
    6
    Views
    288

    Re: problem with inheritance

    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...
  5. Replies
    4
    Views
    366

    [SOLVED] Re: Confused on if statements condition...

    To use the AND and OR operators in java, you need to write them as (&&) and ( || ).
  6. Replies
    6
    Views
    288

    Re: problem with inheritance

    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,...
  7. Thread: io program

    by Mitch1337
    Replies
    2
    Views
    294

    Re: io program

    Why don't you show us how you've started, and we can further assist you based on that.
  8. Replies
    2
    Views
    268

    Re: Hello Java Experts

    Welcome to the forums, I am new myself but will do my best to help with any questions.
  9. Re: Java Array Merge Input Beginner Question

    Should have done that, very good point Norm.
  10. Re: Java Array Merge Input Beginner Question

    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...
Results 1 to 10 of 10