public class Student { private String FirstName; private String LastName; private String Address; private String PhoneNumber; private int Credits; private double Tuition; private boolean state; private boolean LateFee; private boolean CampusFood; private boolean HealthCare; public Student(String studentFirstName, String studentLastName, String studentAddress,String studentPhoneNumber, int studentCredits) { FirstName = studentFirstName; LastName = studentLastName; Address = studentAddress; PhoneNumber = studentPhoneNumber; Credits = studentCredits; } public void readInput() { System.out.println("Name: " + FirstName + " " + LastName); System.out.println("Address: " + Address); System.out.println("PhoneNumber: " + PhoneNumber); System.out.println("Credits: " + Credits); } public Student(double Tuition) { } public Student calculateData() { double Tuition; if (Credits < 12) { Tuition = (Credits*102.50); Student Tuition = new Student(Tuition); return Tuition; }
this is part of my program. I am getting an error on the line Student Tuition = new Student(Tuition); It says the constructor Student(student) is undefined.