title: How to print the result of a method with System.out.println
body: <p>How do I print out the result of a method? I want to print out the return of translate but it displays true or false. Suggestions please. </p>
  
  <pre><code>/**
       * @returns the string "yes" if "true" and "no" if false
       */
      public String translate(boolean trueOrFalse)    
         {       
          if(pback == true)
              {
                  return "yes";
              }
          else
              {
                  return "no";
              }
          }
      /**
       * Display book info
       */
      public void displaybook()
          {
              System.out.println("Title: " + title);
              System.out.println("Author: " + author);
              System.out.println("ISBN: " + isbn);
              System.out.println("Pages: " + pages);
              System.out.println("Paperback: " + pback);
              System.out.println("Suggested Price: " + price);            
          }
  </code></pre>