A string. Wasn't looking at that before. Thanks!
Type: Posts; User: collegejavastudent
A string. Wasn't looking at that before. Thanks!
I understand that it accepts doubles and seems to think it's taking Strings here. My problem is that I can't understand why it seems to be a String.
Tried to compile the following code and got these errors:
Course.java:43: incompatible types
found : java.lang.String
required: double
double cStart = df.format(cStart);
...
Aaah, just realized that I left out the code in which I was going to make that a double...
Thanks! Don't I feel silly...
Yes - it's written as
public Course(String cName, double cStart, double cEnd){
...
}
The compiler can not find that variable in the Course class.[/QUOTE]
Just realized, I forgot the...
./Fitter.java:56: cannot find symbol
symbol: constructor Course(java.lang.String,java.lang.String,java.lang.String)
location: class Course
Course newCourse = new Course(cName, cStart, cEnd);
...
Hi! I have two errors in my code when I try to compile, in the lines " Course newCourse = new Course(cName, cStart, cEnd);" and "lastEnd = course.getETime;" and I'm not sure why the code is having...