Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In the provided Lab1.java it used the variables sortedX and sortedY. Shouldn those be ptsByX and ptsByY, respectively?

0
Posted

In the provided Lab1.java it used the variables sortedX and sortedY. Shouldn those be ptsByX and ptsByY, respectively?

0

Yes. I decided to pick better variables names than SortedX and SortedY just before putting it on the web page and neglected to change those 5 occurences. This has been corrected on the web page if you want to get new copies. However, it may be just as easy to edit the 5 occurences.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.