@@ -0,0 +1,623 @@
+%0A%0Aimport java.util.Collections;%0Aimport java.util.Scanner;%0Aimport java.util.Vector;%0A%0Apublic class Vectors %7B%0A%09%0A%09public static void main(String%5B%5D args)%7B%0A%09%0A%09// declares and initializes Java Vector%09%0A%09Scanner sc = new Scanner(System.in);%0A    Vector%3CDouble%3E myVector = new Vector%3CDouble%3E(50);%0A%09%0A    double input = 0.0;%0A    %0A    do%7B%0A    %09input = sc.nextDouble();%0A    %09if (input == 0)%7B%0A    %09%09break;%0A    %09%7D%0A    %09else%7B%0A    %09myVector.add(input);%0A    %09%7D%0A    %7D%0A    while(input != 0);%0A    %0A    System.out.println(%22Unsorted vector: %22 + myVector);%0A    Collections.sort(myVector);%0A    System.out.println(%22Sorted vector: %22 + myVector);%0A%0A%09%7D%0A%7D%0A

Create Vectors.java