title: How to import in Java with two classes with the same name
body: <p>Now I'm having a bit of problem. I'm writing a converter functions and let's say I want to convert one type of card (one class) to another type (another class).</p>
  
  <p>Let's say one is foo.bar.Card and the other is baz.banan.Card. I can have one </p>
  
  <pre><code>import foo.bar.Card;
  </code></pre>
  
  <p>but I can't do</p>
  
  <pre><code>import foo.bar.Card;
  import baz.banan.Card;
  </code></pre>
  
  <p>as then the compiler can't tell them apart.</p>
  
  <p>I could do just one of them and then prefix the other so I have Card and baz.banan.Card in my code, but I want to avoid having very long names. Ideally I would like to use bar.Card and banan.Card but is that possible and if so how?</p>