MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/InsertionSort.java:6–10  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

4public class Main {
5 //Driver Function
6 public static void main(String[] args) {
7 int[] arr = {7, 9, 2, 4, 10};
8 insertionSort(arr);
9 System.out.println(Arrays.toString(arr));
10 }
11 //Insertion Sort Algorithm
12 static void insertionSort(int[] arr) {
13 for (int i = 0; i < arr.length - 1; i++) {

Callers

nothing calls this directly

Calls 2

insertionSortMethod · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected