title: Break from called method in java
body: <p>I have two methods: </p>
  
  <pre><code>public void test() {
      for (int i = 0; i &lt;= 10; i++) {
          a();
      }
  }
  
  public void a() {
      // ...
  }
  </code></pre>
  
  <p>Suppose the <code>test</code> method is fixed, I can not modify it. </p>
  
  <p>How can I break the for loop in the <code>a</code> method?</p>