(Solved): Q: I need help in J&…..

QUESTION

Question

I need help in Java ):

———————————————————————

Write a java program that merge the five algorithms bubble, selection, insertion, merge, and quick sort in one program with selection menu

output

ANSWERS:

Step 1

JAVA Program :

import java.util.Scanner;

public class Main {
  
//insertion sort
void SelectionSort(int arr[]) {
int n = arr.length;

for (int i = 0;

Leave a Comment

Your email address will not be published. Required fields are marked *