摘要: //新建一个数组类public class SnakeArray {//程序入口 public static void main(String[] args) { move(8); } public static void move(int n) { //初始化 // 新建 n*n的二维数组 int[][] array = new int[n][n]; // left表示点左移,right表示点右移,up表示点上移,down表示点下移 int left = 1; int right = 2; ... 阅读全文
posted @ 2012-11-16 11:37 smile看风云 阅读(664) 评论(0) 推荐(0) 编辑