title: How to call a static String method which returns string from main method?
body: <p>In this below program, am passing a string value as argument to method print(String) which is static and returns string. Though I get no error,am not getting output.</p>
  
  <pre><code>public class StringTest {
  
      public static void main( String[] args )
      {
          String  stw="iii";
          print(stw);
      }
  
      public static String print( String str )
      {
          return str;
      }
  }
  </code></pre>