这是我的第一篇文章。我很兴奋能成为这个社区的一员,而且我已经遇到了一个问题很长时间了,所以就来发帖问问吧:
在以下代码中:
在以下代码中:
if (j == 0)
{
if (!Arrays.equals(cipherData, c))
{
System.out.print("C: ");
for (int i = 0; i < encryptedData.length; i++)
System.out.print((char)cipherData[i]);
System.out.println();
}
}
System.out.println()
方法根本不返回任何东西,没有任何行或其他内容,我也不知道为什么。目标是在上面打印字节数组时,当这些if条件为真时,在打印一个空行。如果能提供帮助将不胜感激。
println()
将要使用的。请参见我上一条评论的编辑-这就是您可以从System
类中检索它的方式。 - Brian Roach