title: Multiple returns from a single int
body: <p>I've been trying to make a score keeping method for blackjack (oh yes there are 100's of pages of code to reference, none have the segment I'm looking for)</p>
  
  <p>All I want is an int array to return, a value between 1 and 11, and then repeat it, returning a different random value.</p>
  
  <p>I have tried dozens of methods, and I'm either not skilled enough to make it work, or the method doesn't suit the rest of my code.</p>
  
  <p>here is what I am trying most recently.</p>
  
  <pre><code>import java.util.Random;
  import java.util.Scanner;
  
  class jacktest
  {
      public static void main ( String[] args )
      {
              Random r = new Random();
  
              Scanner input = new Scanner(System.in);
              String name;
              boolean playing = true;
              boolean notplaying = true;
              int ncard = 1 + r.nextInt(11);
  
              for (i=0; i&gt;11; ++i);
  
              System.out.println("two cards from the same int: "+ncard +ncard);
      }
  }
  </code></pre>
  
  <p>can someone save me some torture, and explain to me, why ncard + ncard yeilds the same number on both occurances?</p>
  
  <p>or what would be a better way to get the same result?</p>
  
  <p>Thanks</p>
  
  <p>PS: I would like the program to say something like,</p>
  
  <pre>
  your first card is a 8 
  your second card is 4
  total 12 H or S (hit or stick)
  Hit: 5
  Total:17 H or S (hit or stick)
  S
  Sticking at 17
  DEALERS turn:
  </pre>
  
  <p>so the total is remembered, and increased depending on the <code>h</code> or <code>s</code> input.</p>
  
  <p>I have seen this type of code in another program, but it doesn't fit my limited coding skills. I would need something very simple and easy to manipulate.</p>