Issue with writing a algorithmic method in Java with a double return value and parameters
<p>I wrote a method for C++ a couple years ago and am now trying to adopt it to Java. I thought it would be as simple as editing the first line of the method but I was wrong. </p>

<p>The code is the following. UPDATED:</p>

<pre><code>import static java.lang.Math.*;

public static double getJD(double y,double m,double d){
    if (m&lt;=2.0){
        y-=1.0;
        m+=12.0;
    }
    double a=floor(y/100.0);
    return (365.25*(y+4716.0))+(30.6001*(m+1))+d+(2.0-a+floor(a/4.0))-1524.5;
}
</code></pre>

<p>Edit: Eclipse is still freaking out with the compiler errors listed below.</p>

<blockquote>
  <p>Description   Resource    Path    Location    Type Syntax error on token "-",
  delete this token jd.java /Elapsed time calc/src  line 7  Java Problem
  Syntax error on token ";", ? expected jd.java /Elapsed time
  calc/src  line 3  Java Problem Syntax error on token ")", , expected
  after this token  jd.java /Elapsed time calc/src  line 2  Java Problem
  Syntax error on token "double", { expected    jd.java /Elapsed time
  calc/src  line 1  Java Problem Syntax error on token "double", @
  expected  jd.java /Elapsed time calc/src  line 1  Java Problem Syntax
  error on token "double", delete this token    jd.java /Elapsed time
  calc/src  line 1  Java Problem Syntax error on token "double", invalid
  ( jd.java /Elapsed time calc/src  line 1  Java Problem Syntax error on
  tokens, delete these tokens   jd.java /Elapsed time calc/src  line 1  Java
  Problem Syntax error on tokens, delete these tokens   jd.java /Elapsed
  time calc/src line 4  Java Problem Syntax error on tokens, delete these
  tokens    jd.java /Elapsed time calc/src  line 6  Java Problem Syntax
  error, insert ": Expression" to complete Expression   jd.java /Elapsed
  time calc/src line 7  Java Problem Syntax error, insert ")" to complete
  SingleMemberAnnotation    jd.java /Elapsed time calc/src  line 7  Java
  Problem Syntax error, insert "}" to complete
  MemberValueArrayInitializer   jd.java /Elapsed time calc/src  line 7  Java
  Problem Syntax error, insert "}" to complete
  MemberValueArrayInitializer   jd.java /Elapsed time calc/src  line 7  Java
  Problem Syntax error, insert "enum Identifier" to complete
  EnumHeaderName    jd.java /Elapsed time calc/src  line 7  Java Problem
  Syntax error, insert "EnumBody" to complete
  CompilationUnit   jd.java /Elapsed time calc/src  line 7  Java Problem</p>
</blockquote>
