@@ -0,0 +1,556 @@
+import java.util.Scanner;%0A%0Apublic class Problem6 %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Scanner scan = new Scanner(System.in);%0A%09%09System.out.print(%22Enter a string: %22);%0A%09%09String a = scan.nextLine();%0A%09%09System.out.print(%22Enter an integer: %22);%0A%09%09int b = scan.nextInt();%0A%09%09if (b%3Ea.length())%7B%0A%09%09%09System.out.println(%22Please choose an integer smaller than the length of the string%22);%0A%09%09%09b = scan.nextInt();%0A%09%09%7D%0A%09%09for (int e = 0; e%3Ca.length();e++)%7B%0A%09%09%09%0A%09%09    for(int i = 0;i%3Cb;i++)%7B%0A%09%09%09    System.out.print(a.charAt(i));%0A%09%09%09    %7D%0A%09%09    b = b - 1;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A%0A

Create Problem6.java