Recursive method for 2,4,8,..in java : <p>I need to write an recursive method for my classes. The method should print the first n elements of the sequence 1,2,4,8,16,... so if the method is called for example like:</p>

<pre><code>recSeq(6);
</code></pre>

<p>the method should print: 1,2,4,8,16,32
The method is declared like this:</p>

<pre><code>static void recSeq(int n){

    //enter code here

}
</code></pre>

<p>I really don't know how to to it without a return value or something? Any ideas?</p>
