public class negativeelementsarray { public static void sort(int a[]) { int n=a.length; int temp; int j=0; for(int i=0;i