title: Passing floats to return String in Java
body: <p>I have a method called "methodA". It have to called with two floats as inputs. I want to return a String. I need help showing how to call this method and assign the String it returns into the String variable <code>str1</code>. And we are assuming my method is in the same class that I call it from.</p>
  
  <p>New to Java so a detailed beginner level explanation would be great! Thanks</p>
  
  <pre><code>public void methodA(f1,f2) {
      str1 = "" + f1 + f2;
      return str1;
  }
  </code></pre>