title: How to define multiple variables in single statement
body: <p>In Python, I can define two variables with an array in one line.</p>
  
  <pre><code>&gt;&gt;&gt;[a,b] = [1,2]
  &gt;&gt;&gt;a
  1
  &gt;&gt;&gt;b
  2
  </code></pre>
  
  <p>How do I do the same thing in Java?</p>
  
  <p>I have a couple of variables in class PCT which type is final. Is there a way to define them in one line in a Python like fashion? The following format clearly does not work in Java. I could define them separately, but it will call the parseFile method twice which I want to avoid. </p>
  
  <pre><code>public class PCT {
      final int start;
      final int stop;
      public PCT (File file) {
          //......
          //......
          // the following statement does not compile
          [start, stop] = parseFile(file);
      }
      public int[] parseFile(File f) {
          int[] aa = new int[2];
          // ....
          // ....
          return aa;
      }
  }
  </code></pre>