title: Sorting a String ArrayList Alphabetically Error Java
body: <p>I am getting these two errors when setting 2 strings equal to one another in a sorting algorithm. Does anyone know why this error is occurring and how to fix it?
  Thanks</p>
  <p>Picture of the errors: <a href="https://i.stack.imgur.com/0xYQD.png" rel="nofollow noreferrer">https://i.stack.imgur.com/0xYQD.png</a></p>