title: Macros in Java?
body: <p>I know there are no macros in Java, but is there a workaround to do something like this:</p>
  
  <pre><code>#ifdef _FOO_FLAG_
  import com.x.y.z.Foo;
  #else
  import com.a.b.c.Foo;
  #endif
  </code></pre>
  
  <p>Both <code>Foo</code> classes have the same methods. One of them is from a 3rd party library. I want to be able to switch to default library easily by changing a single line of code. Is this possible?</p>
  
  <p><strong>EDIT:</strong><br>
  Both classes are out of my control(one of them is from SQLCipher for Android project, other one is from Android SDK). I need this because SQLCipher library doesn't work on SAMSUNG phones at the moment.</p>