@@ -0,0 +1,630 @@
+import java.util.*;%0A%0Apublic class CollatzSequence %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner keyboard = new Scanner(System.in);%0A        int steps =0;%0A        System.out.print(%22Starting Number: %22);%0A        int number = keyboard.nextInt();%0A        System.out.print(number);%0A       do %7B%0A           if (number%252%3E0)%7B%0A               number = (number * 3)+1;%0A           %7D%0A           else if (number %252 == 0)%7B%0A               number = number/2;%0A           %7D%0A           System.out.print(%22   %22+number);%0A           ++steps;%0A       %7Dwhile(number!=1);%0A    System.out.print(%22%5Cr%5CnTerminated after %22+steps+%22 steps.%22);%0A    %7D%0A%7D%0A

Create CollatzSequence.java