@@ -0,0 +1,290 @@
+// Use substring().%0Aclass SubStr %7B%0A%09public static void main(String args%5B%5D) %7B%0A%09%09String orgstr = %22Java makes the Web move.%22;%0A%09%09%0A%09%09// construct a substring%0A%09%09String substr = orgstr.substring(5, 18);%0A%09%09%0A%09%09System.out.println(%22orgstr: %22 + orgstr);%0A%09%09System.out.println(%22substr: %22 + substr);%0A%09%7D%0A%7D%0A

Use substring()