import java.io.*;public class Bubble { private static BufferedReader stdin = new BufferedReader( new InputStreamReader(System.in)); public static void main (String args[])throws IOException{ //Bub = array Double [] bub = new Double [10]; //Junk //System.out.println ("Enter number"); //Speedier way for input rather then input 1 input 2 etc. Integer n; for (n=0;n<bub.length;n++) { System.out.println("x[" + n + "]= "); String input = stdin.readLine(); bub[n] = Double.parseDouble(input); } //Now to add in the bubble sort /*Repeat Swapped = false For n = 0 to maxIndex-1 If X[n] > X[n+1] Swap X[n] and X[n+1] Swapped = trueuntil !Swapped*/ //How to write in java? //repeat (Swapped = false); //And result System.out.println (""); }}