making a pyramide
<p>Trying to make a pyramide here, but I'm new to java and a little stuck.</p>

<p>The pyramide figure I am trying to make have three parameters: one that show how many lines the pyramide should have, one that choose the symbol that should be used and one that shows if the peak should be down.</p>

<p>The pyramide have used those methods: 5, x and false.</p>

<p>And that should print at this pyramide:</p>

<pre><code>    x
   x x
  x x x
 x x x x
x x x x x
</code></pre>

<p>Anyone that know a solution?</p>

<p>I have tried making a pyramide with some googling, but I am only getting this output:
X
XX
XXX
XXXX
XXXXX</p>

<p>And not the false part to the decide if the peak should be down.</p>
