heres what i got so far... i dont quite have arrays down so far so thats whats my problem right now... i haven't got to sorting it out yet but i am first trying to generate n amount of numbers between 0 - 100... what am i doing wrong?
Code:import java.io.*; public class Sorting { public static void main(String[] args) throws java.io.IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String h; int i; do { System.out.print("How many numbers am I gonna sort? "); h = br.readLine(); i = Integer.parseInt(h); } while(i >= 10000 || (i % 2.0) == 1); int order[] = new int[i]; order = (int[]) (Math.random() * 101); System.out.println(order); } }
//
import java.util.*;
public class srt {
public static void main (String args[]) {
int a [] ={12,3,4,345,123,13,45,123123,43,1};
int x;
str.sort(a[1]);
do{
i++;
System.out.println( a [i]);
x= a[i];
}while (x!=null);
}
public static void sort(int[] a, int a[0], int a[10]){
}
}
sorry to interrupt the thread, where is my sort messing up?