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
Picture of the errors: https://i.stack.imgur.com/0xYQD.png
You can't assign a value to a method. Instead, you want to call the set
method: ArrayList#set(index, value)
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.