Search:

Type: Posts; User: collegejavastudent

Search: Search took 0.15 seconds.

  1. Replies
    14
    Views
    663

    Re: Doubles are somehow Strings?

    A string. Wasn't looking at that before. Thanks!
  2. Replies
    14
    Views
    663

    Re: Doubles are somehow Strings?

    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.
  3. Replies
    14
    Views
    663

    Doubles are somehow Strings?

    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);
    ...
  4. Re: "Cannot find symbol" compilation error

    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...
  5. Re: "Cannot find symbol" compilation error

    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...
  6. Re: "Cannot find symbol" compilation error

    ./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);

    ...
  7. "Cannot find symbol" compilation error

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