title: How to use a value returned in a different class?
body: <p>This is probably a very simple question. Say I had a class that computed the gcd, called Gcdcomp. The code in that class all works. When i refer to it in my main block of code, I say..</p>
  
  <pre><code>Gcdcomp.getGcd(a, hii);
  </code></pre>
  
  <p>a and hii are my two variables. By default, the Getgcd class uses int a and int b and will return a after executing euclids algorithm. How do I use that returned value as a variable in my main code?</p>