第七次实验课代码
添加C04~C07
This commit is contained in:
@@ -13,7 +13,7 @@ public class EncryptDemo {
|
||||
|
||||
// for(char c:enc)
|
||||
// System.out.print(c);
|
||||
System.out.println(Arrays.toString(enc));
|
||||
System.out.println("密文:"+Arrays.toString(enc));
|
||||
|
||||
char[] dec= new char[enc.length];
|
||||
for(int i=0;i<str.length();i++)
|
||||
@@ -21,6 +21,6 @@ public class EncryptDemo {
|
||||
|
||||
// for(char c:dec)
|
||||
// System.out.print(c);
|
||||
System.out.println(Arrays.toString(dec));
|
||||
System.out.println("明文:"+Arrays.toString(dec));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ public class NumberCounter {
|
||||
hash[(int)(num%10)]++;
|
||||
num/=10;
|
||||
}
|
||||
|
||||
for(int i : hash)
|
||||
System.out.print(i+" ");
|
||||
System.out.println();
|
||||
|
||||
Reference in New Issue
Block a user