S
spidey12345
PrintWriter out = new PrintWriter(new
FileOutputStream("EncryptedData.txt"));
out.println("Encrypted text with monoalphabetic subsititution: ");
out.flush();
int line = 1;
for(int i = 0; i<size; i++)
{
out.print(newarray);
out.flush();
if((i+1)%5==0)
{
out.print(" ");
line = line +1;
}
if(line%11 ==0)
{
out.println('\n');
line = line+1;
}
}// end for loop
// frequencies: and it's index of coincidence
out.println("Frequencies: ");
this is part of my code, simply the when i try to print out the
frequencies words, it won't let me, does it have to do with
out.flush??
any other way to do this
FileOutputStream("EncryptedData.txt"));
out.println("Encrypted text with monoalphabetic subsititution: ");
out.flush();
int line = 1;
for(int i = 0; i<size; i++)
{
out.print(newarray);
out.flush();
if((i+1)%5==0)
{
out.print(" ");
line = line +1;
}
if(line%11 ==0)
{
out.println('\n');
line = line+1;
}
}// end for loop
// frequencies: and it's index of coincidence
out.println("Frequencies: ");
this is part of my code, simply the when i try to print out the
frequencies words, it won't let me, does it have to do with
out.flush??
any other way to do this