Search:

Type: Posts; User: melki0795

Search: Search took 0.07 seconds.

  1. Replies
    11
    Views
    1,096

    Re: Nested For...each Loop?

    Yes we are, haha.

    Ok, so basically...If The user enters the the marks for the first subject.... (example: 20, 30 and 40)
    The enters the marks for the second subject ( example 50, 60 and 70);
    ...
  2. Replies
    11
    Views
    1,096

    Re: Nested For...each Loop?

    I need that it works out the addition of both arrayLists of the subject together. SO i can work out an overall average.

    Example: I'm malcolm, and I have 2 subjects... English and Maltese. I need...
  3. Replies
    11
    Views
    1,096

    Re: Nested For...each Loop?

    The user must... enter name, surname student number.... thats one class...

    then it asks him to enter marks for hw and exams for one subject, so thats an instance of subject...in array sub...
    ...
  4. Replies
    11
    Views
    1,096

    Re: Nested For...each Loop?

    still cannot get it... this is my full class...


    import java.util.ArrayList;
    public class Subject
    {
    int subjectNumber;
    ArrayList<Double> homeworkMark;
    ArrayList<Double>...
  5. Replies
    11
    Views
    1,096

    Re: Nested For...each Loop?

    At this point I have one instance of "student".. If the student adds more than one subject, I need to add the homeworkMark of both instances of "student"... Lets say I have

    A student who decides...
  6. Replies
    11
    Views
    1,096

    Nested For...each Loop?

    Hi, I have 3 classes in My Program. One is the Main class, another class for students and another class for the subjects and their marks, which are store in arrayLists....

    When the student enters...
Results 1 to 6 of 6