I want to make a simple chess board in java. The input is integer n and the output must be n×n Chessboard. *
represents black field and (space) represents white field. For Example, for n=5 the Chess board would be like this:
* * *
* *
* * *
* *
* * *
so far i already wrote the code like this but it has no white field just black field (*
).