title: Is there anything like branch/jump table in Java?
body: <p>Does Java have something similar to a branch or jump table?</p>
  
  <p>A branch or jump table table is, <a href="http://en.wikipedia.org/wiki/Branch_table" rel="nofollow noreferrer">according to wikipedia</a>,</p>
  
  <blockquote>
    <p>a term used to describe an efficient method of transferring program control (branching) to another part of a program (or a different program that may have been dynamically loaded) using a table of branch instructions.</p>
  </blockquote>
  
  <p>Does Java have something like this or do I just have to use if/else if/else or case statements?</p>