@@ -0,0 +1,1055 @@
+public class Solution %7B%0A    private int%5B%5D dx = %7B0, 1, 0, -1, 1, -1, -1, 1%7D;%0A    private int%5B%5D dy = %7B1, 0, -1, 0, 1, 1, -1, -1%7D;%0A    public void gameOfLife(int%5B%5D%5B%5D board) %7B%0A        for(int i=0; i%3Cboard.length; i++) %7B%0A            for(int j=0; j%3Cboard%5Bi%5D.length; j++) %7B%0A                int count = 0;%0A                for(int k=0; k%3Cdx.length; k++) %7B%0A                    int xx = i + dx%5Bk%5D;%0A                    int yy = j + dy%5Bk%5D;%0A                    count += status(board, xx, yy);%0A                %7D%0A                if(count == 3) board%5Bi%5D%5Bj%5D %7C= 2;%0A                else if (count %3E=2 && count %3C= 3 && status(board, i, j) %3E 0) %7B%0A                    board%5Bi%5D%5Bj%5D %7C= 2;%0A                %7D%0A            %7D%0A        %7D%0A        for(int i=0; i%3Cboard.length; i++) %7B%0A            for(int j=0; j%3Cboard%5Bi%5D.length; j++) %7B%0A                board%5Bi%5D%5Bj%5D = board%5Bi%5D%5Bj%5D %3E%3E 1;%0A            %7D%0A        %7D%0A    %7D%0A    %0A    private int status(int%5B%5D%5B%5D board, int x, int y) %7B%0A        if(x %3E=0 && x %3C board.length && y %3E=0 && y%3Cboard%5B0%5D.length) return 1 & board%5Bx%5D%5By%5D;%0A        return 0;%0A    %7D%0A%7D%0A

Create Game_of_Life.java