You can't compare strings using the == operator, you need to use the .equals() method. Also, in your second loop don't start from 0, but start from i, and it should also be j++ instead of i++ in the...