I have questions on sorting algorithms, traversing 2d arrays to print the sums, moving elements around, and understanding the super keyword/is a-has a relationship/class casting. These areas are...
Type: Posts; User: Codestudent121
I have questions on sorting algorithms, traversing 2d arrays to print the sums, moving elements around, and understanding the super keyword/is a-has a relationship/class casting. These areas are...
My logic in this program was to compare values and store the values with the highest frequencies using maxFreq. If I have two of the same highest frequencies, then the computer should display "No...
Thanks so much for your help! You made me realize that I need the second loop to simultaneously compare 2 values in the array and move them around. Also, how do I do a selection sort on an ArrayList...
Thanks. I've tried tracing loops, and kinda get it, but I still struggle to get why I need two loops instead of one. Is it possible to do an insertion sort with one loop?
The method below is intended to use an insertion sort. For example: if I had a String ArrayList of elements ["code", "computer", "area", "school"], it should sort the elements by insertion sort into...