namespace ConsoleApplication2{ class Program {//letter 字母 gigit 数字 symbol 符号 static void Main(string[] args) { Console.WriteLine("请输入字符"); string s = Console.ReadLine();//输入的字符串用S来接收 int letter = 0;//最开始字母的个数为0 int gigit = 0; //最开始数字的个数为0 int sy…
public class Copy1 { public static void main(String[] args) { array1(); //如果不初始化元素,默认为0 int [][] a = new int [][]{{1,3,2,5,7},{5,9,3,4,2}}; int [][] b = new int [a[1].length][a.length]; for(int i=0;i<b.length;i++){ //数组的转置 for(int j =0;j<b[i].length…
forEach()取出数组中2的倍数和3的倍数的数 //for IE if(!Array.prototype.forEach){ Array.prototype.forEach = function(callback, thisArg){ var T, k; if(this == null){ throw new TypeError(" this is null or not defined"); } var O = Object(this); var len = O.length &…