24 Jun Markham Saturday 14:00 Java Homework 21.06.19.
Question:
Given an array of strings as below:
strArr = [“apple”,”banana”,”or”,”and”, “they”,”them”,”fighter”]
Use any sorting algorithm to sort the array according to the size of the string. If the array contains multiple strings with the same length, you can order those strings in any order.
Final Sorted array should be as below
strArr = [“or”,”and”,”they”,”them”, “apple”,”banana”,”fighter”]
Sorry, the comment form is closed at this time.