title: How to run java code through eclipse console?
body: <p>I have virtually no java/eclipse experience, so bear with me.  I have written a code to use the Euclidean algorithm to compute a greatest common divisor.  </p>
  
  <pre><code>public class Euclid {
      public static int gcd(int a, int b){
          while (b!= 0){
              if (a &gt; b){
                  a -= b;
              }
              else {
                  b -= a;
              }
          }
          return a;
      }
  
  }
  </code></pre>
  
  <p>How would I go about testing this in the eclipse console to ensure that it runs properly?  E.g were I using python, which I have some experience with, I'd think to simply type gcd(32, 24) into IDLE and hit enter.  </p>