title: How can I make correct output of Locale
body: <p>How can I make <code>Locale</code> output that the language of the passport is Russian, and for each element in the array list, to call the method <code>isRussian()</code>:</p>
  <pre class="lang-java prettyprint-override"><code>public class Passport implements Comparable&lt;Passport&gt; { 
      
      private String firstName;
      private String lastName;
      private Locale passportIssue;
      
      // c-tor
      public Passport(String firstName, String lastName, Locale passportIssue) {
          this.firstName = firstName;
          this.lastName = lastName;
          this.passportIssue = passportIssue;
      } 
      
      //method
      public boolean isRussian() {     
          if (passportIssue == &quot;ru&quot;) {
              return true;
          }
          return false;
      }
  }
  </code></pre>
  <p>This is what I have tried:</p>
  <pre class="lang-java prettyprint-override"><code>List&lt;Passport&gt; pass = new ArrayList&lt;&gt;();
  Locale a = new Locale(&quot;ru&quot;);        
      
  Passport p = new Passport(&quot;Erika&quot;, &quot;Ivanovich&quot;, new Locale(&quot;ru&quot;)); 
      
  Passport p1 = new Passport(&quot;Kemal&quot;, &quot;Remzi&quot;, Locale.ENGLISH);
      
  Passport p2 = new Passport(&quot;Ivana&quot;, &quot;Bogdan&quot;, new Locale(&quot;ru&quot;));
      
  pass.add(p);
  pass.add(p1);
  pass.add(p2);
      
  System.out.println(&quot;Is the passport &quot; + p.getPassIssue() + &quot; russian?&quot;);
  </code></pre>