Search:

Type: Posts; User: mwr76

Search: Search took 0.19 seconds.

  1. Replies
    5
    Views
    3,282

    Re: Can't instantiate custom class

    I forgot here is the compiler error:


    InputGrades.java:26: error: constructor Student in class Student cannot be applied to given types;
    Student stu = new Student(sId, new CollegeCourse(cId,...
  2. Replies
    5
    Views
    3,282

    Re: Can't instantiate custom class

    I am obviously still wrong because of my compiler error, am I any closer. I am trying to understand this conceptually, where am I wrong and
    why?

    tester class:



    import java.util.*;
  3. Replies
    5
    Views
    3,282

    Can't instantiate custom class

    I have a class CollegeCourse:



    public class CollegeCourse
    {
    private String courseId;
    private int creditHours;
    private char grade;
Results 1 to 3 of 3