public class CaesarCipher
{
public CaesarCipher(int aKey)
{
Key = 4;
On the original example this was defined by the user inputting a value of their choice. I decided to just...
Type: Posts; User: wdh
public class CaesarCipher
{
public CaesarCipher(int aKey)
{
Key = 4;
On the original example this was defined by the user inputting a value of their choice. I decided to just...
So the variables would be file and out then? or in and out?
CaesarCipher.java:17: cannot find symbol
symbol : method read()
location: class java.util.Scanner
int next =...
Oh sorry Norm!
I just took out (Key) to see if it made a difference but hadnt put it back in. It adds another error in as you can see below.
symbol : class CaesarCipher
location: class reader
...
reader.java:14: cannot find symbol
symbol : class CaesarCipher
location: class reader
CaesarCipher cipher = new CaesarCipher();
^
reader.java:14: cannot find...
The key from the example im following originally came from a keyboard input but im trying to define it in the first piece of code. As for the Print writer, would i be better using FileWriter?
Im trying to encrypt a .txt file using the CaesarCipher method.
Below is what i have so far after roughly following an example in Horstmann's book.
I get errors when trying to compile "reader"...