title: Simple Chessboard in java
body: <p>I want to make a simple chess board in java. The input is integer n and the output must be n×n Chessboard. <code>*</code> represents black field and <code></code> (space) represents white field. For Example, for n=5 the Chess board would be like this:</p>
  
  <pre><code>* * *
   * * 
  * * *
   * * 
  * * *
  </code></pre>
  
  <p>so far i already wrote the code like this but it has no white field just black field (<code>*</code>).</p>
  
  <p><img src="https://i.stack.imgur.com/xcuLg.jpg" alt="code"></p>