0

I have 2 java classes, Client.java and RC4.java respectively, when compiling the code in cmd, I receive the error:

Client.java:50: error: cannot find symbol

RC4 rc4 = new RC4(hashed_password.getBytes());

I have already created an instance of RC4 in Client.java though, and that is why I dont understand why this error persists. For reference, these are my code snippets

Client.java

public class Client 
{ ...
RC4 rc4 = new RC4(hashed_password.getBytes());
...}

RC4.java

public class RC4
{...
public RC4 (byte[] key)
   {...
   }
}

Please take into account beginner to java here, so please not too much technical jargons ty

Added in cmd: enter image description here

Hao
  • 23
  • 7

0 Answers0