Search:

Type: Posts; User: wdh

Search: Search took 0.35 seconds.

  1. Thread: CaesarCipher

    by wdh
    Replies
    13
    Views
    1,466

    Re: CaesarCipher

    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...
  2. Thread: CaesarCipher

    by wdh
    Replies
    13
    Views
    1,466

    Re: CaesarCipher

    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 =...
  3. Thread: CaesarCipher

    by wdh
    Replies
    13
    Views
    1,466

    Re: CaesarCipher

    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
    ...
  4. Thread: CaesarCipher

    by wdh
    Replies
    13
    Views
    1,466

    Re: CaesarCipher

    reader.java:14: cannot find symbol
    symbol : class CaesarCipher
    location: class reader
    CaesarCipher cipher = new CaesarCipher();
    ^
    reader.java:14: cannot find...
  5. Thread: CaesarCipher

    by wdh
    Replies
    13
    Views
    1,466

    Re: CaesarCipher

    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?
  6. Thread: CaesarCipher

    by wdh
    Replies
    13
    Views
    1,466

    CaesarCipher

    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"...
Results 1 to 6 of 6