title: java function to convert alphanumeric to integers
body: <p>I'm trying to achieve the below logic in Java but stuck up as I'm a beginner. </p>
  
  <p>I need to convert <code>1A</code>, <code>1B</code>, <code>2A</code>, <code>2B</code>, <code>3A</code>, <code>3B</code>...etc to <code>1</code>,<code>2</code>,<code>3</code>,<code>4</code>,<code>5</code>,<code>6</code>...etc.The logic or the function should return the equivalent integer of the alphanumeric that I pass as input.</p>
  
  <p>Note: There will only be two alphabets A and B. The numbers will keep increasing sequentially.</p>