package ru.job4j.loop;

 /**
*  Board.
* @author Evgeniy Vinnitskiy (mailto:report-2k8@yandex.ru)
* @version $1.0$
* @since 11.05.2017
*/
public class Board {
/**
    * Metod public.
    * @param width - width
	* @param height - height
	* @return desk
    */
   public String paint(int width, int height){
      StringBuilder builder = new StringBuilder();
      for(int i=0;i<height;i++){
        for(int j=0;j<width;j++)
          if((i+j)%2==0)
	        builder.append("x");
	    else
            builder.append(" ");
        builder.append("\r\n");
	return builder.toString();
  }
 }
}
@@ -297,18 +297,19 @@
  height)
+ 
 %7B%0A
-
       St
@@ -364,30 +364,38 @@
  for
+ 
 (int i
-=0;i%3C
+ = 0; i %3C 
 height;
+ 
 i++)
+ 
 %7B%0A  
@@ -407,29 +407,38 @@
  for
+ 
 (int j
-=0;j%3C
+ = 0; j %3C 
 width;
+ 
 j++)
+ %7B
 %0A   
@@ -450,20 +450,29 @@
   if
+ 
 ((i
-+j)%252
+ + j) %25 2 
 ==
+ 
 0)
+ %7B
 %0A%09  
@@ -502,17 +502,20 @@
 %22);%0A
+%09
 %09  
- 
+%7D
  else
+ %7B
 %0A   
@@ -576,16 +576,27 @@
 %5Cr%5Cn%22);%0A
+%09  %7D%0A    %7D%0A
 %09return 
@@ -617,14 +617,16 @@
 ng();%0A  
+ 
 %7D%0A
+ 
  %7D%0A%7D

task 13559