@@ -0,0 +1,299 @@
+public class Test %7B%0A   public static void main(String%5B%5D args) %7B%0A      System.out.print(%22Please enter a string: %22);%0A      String stringInput = System.console().readLine();%0A      int stringLength = stringInput.length();%0A      System.out.println(%22The number of characters is: %22 + stringLength);%0A   %7D%0A%7D%0A

Update and rename to Test.java