return statement no result in java : <p>I have declared a method in a class named Teacher used return statement,</p>

<pre><code>    public String info(){
    return  "Name is " +name +"Location is "+location;
</code></pre>

<p>Then I built the constructor then I called it from main class </p>

<pre><code>Teacher t1= new Teacher("Tim","Guildford","Reader");
t1.info();
</code></pre>

<p>However both in cmd windows and intellij , there is no result.</p>

<p>But if I change the method type to void and use system.out.println, every thing is fine.</p>

<p>What is the problem here?</p>
