title: how to write a method that translates a boolean into "yes" or "no"
body: <p>I'm new to java and I"m need to write a method that translates a boolean true or false into a string "yes" or "no". I'm kinda lost.</p>
  
  <pre><code>public class Book
  {
      private String title;
      private String author;
      private String isbn;
      private int pages;
      private boolean pback;
      private double price;
  
      /**
       * Constructor for objects of class Book
       */
      public Book(String bookTitle, String bookAuthor, String bookCode, int bookPages, boolean paperback, double bookRetail)
      {
          // initialise instance variables
          title = bookTitle;
          author = bookAuthor;
          isbn = bookCode;
          pages = bookPages;
          pback = paperback;
          price = bookRetail;
      }
  
  
  public String translate(boolean trueorFalse)
              {
                  if(pback = true)
                      {
                          ??????;
                      }            
                   else(pback = false)
                      {
                          ???????;
                      } 
  
              }
  </code></pre>