2012年7月4日

全排列,排大小,打印素数,乘法表

摘要: 1.实现A,B,C,D的全排列 1 public class paixu { 2 3 public static void main(String[] args){ 4 char[] ch=new char[4]; 5 int count=0; 6 for(int i=0;i<4;i++){ //确定数组第一个字母 7 ch[i]='A'; 8 for(int j=0;j<4;j++){ 9 if(i!=j){ ... 阅读全文

posted @ 2012-07-04 17:30 柠檬汽水 阅读(162) 评论(0) 推荐(0)

导航