Good evening all,
I hope everyone is well. I'm OK, but I need a little help trying to figure out how to properly code a particular statement, namely this:
Obviously that is not correct, .equals is not going to work here, but I also know that I cannot use the == operator either. I can't say:
I'm working on an Atbash cipher, i.e. I need to find a character in a string and swap it with another. In this case, "a" will become "x" and so on.Code Java:
if(input.indexOf("a") == "a")
If anyone can help, I would really appreciate it. Thanks guys.