

public class Render {
  
  public final int width;
  public final int height;
  public final int[] pixels;
  
  public Render(int width, int height) {
      this.width = width;
      this.height = height;
      pixels = new int[width * height];
  }

}

@@ -16,24 +16,26 @@
 Render %7B%0A  %0A
+  
   public fin
@@ -48,16 +48,18 @@
  width;%0A
+  
   public
@@ -77,16 +77,18 @@
 height;%0A
+  
   public
@@ -110,17 +110,21 @@
 xels;%0A  
+ 
-%0A
+ %0A  
   public
@@ -158,24 +158,26 @@
 ht) %7B%0A      
+  
 this.width =
@@ -186,24 +186,26 @@
 idth;%0A      
+ 
+ 
 this.height 
@@ -210,24 +210,26 @@
 t = height;%0A
+  
       pixels
@@ -256,15 +256,390 @@
 eight%5D;%0A
+    %7D%0A    %0A    public void draw(Render render, int xOffset, int yOffset) %7B%0A        for(int y = 0; y %3C render.heihgt; y++) %7B%0A            int yPix = y + yOffset;%0A            for(int x = 0; x %3C render.width; x++) %7B%0A               int xPix = x + xOffset;%0A               %0A               pixels%5BxPix + yPix * width%5D = render.pixels%5Bx + y * render.width%5D;%0A            %7D%0A        %7D%0A  
   %7D%0A%0A%7D%0A

Update Render.java