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 > x[i+1]) {
// exchange elements
int temp = x; x = x[i+1]; x[i+1] = temp;
}
}
}
}
}
the output say..
java.lang.NoSuchMethodError: main
Exception in thread "main"