MCPcopy Create free account
hub / github.com/KrishGaur1354/Java-Projects-for-Beginners / main

Method main

Bubble-Sort/bubblesort.java:4–8  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2
3public class bubblesort {
4 public static void main(String[] args) {
5 int[] arr = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
6 bubble(arr);
7 System.out.println(Arrays.toString(arr));
8 }
9 static void bubble(int[] arr) {
10 boolean swapped;
11 for(int i = 0 ; i < arr.length ; i++){

Callers

nothing calls this directly

Calls 2

bubbleMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected