0 LIKES LikeUnLike
class bubbleSort1{public static void bubbleSort(int[] x) { int n = x.length; for (int pass=1; pass < n; pass++) { // count how many times // This next loop becomes shorter and shorter for (int i=0; i < n-pass; i++) { if (x[i] > x[i+1]) { // exchange elements int temp = x[i]; x[i] = x[i+1]; x[i+1] = temp; } } }}} the output say..java.lang.NoSuchMethodError: mainException in thread "main" Process completed.
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 2 answers.