title: Getting a function to return two integers
body: <p>I am writing a function and I want it two return two integers as results. However, I cannot get it to do this. Could someone help me? Here is my best shot</p>
  
  <pre><code>public static int calc (int s, int b, int c, int d, int g)
      {
          if (s==g)
              return s;
          else if (s+b==g)
                  return s &amp;&amp; b;
  
          else if (s + c==g)
                  return s &amp;&amp; c;
  
           else if (s+d==g)
                  return s &amp;&amp; d;
  
          else
              System.out.println("No Answer");                    
      }
  </code></pre>