
public class HelloSubstrings {
	static private String string = "We hold these truths to be self-evident, " 
		+ "that all men are created equal, " 
		+ "that they are endowed by their Creator with certain unalienable Rights, " 
		+ "that among these are Life, Liberty and the pursuit of Happiness.";
	
	public static void main(String...args) {
		System.out.println("Hello Substrings!");
		
		System.out.printf("\n%s\n\n", string);
		
		// 1. Substrings
		
		String str01 = string.substring(string.length() - 10);
		String str02 = string.substring(0,  40);
		
		System.out.printf("string.substring(string.length() - 10); = <%s>\n", str01);
		System.out.printf("string.substring(0,  40); = <%s>\n", str02);
		
		System.out.println("--------------------");
		
		// 2. Subsequences
		
		CharSequence csq01 = string.subSequence(string.length() - 10, string.length());
		CharSequence csq02 = string.subSequence(0, 40);
		
		System.out.printf("string.subSequence(string.length() - 10, string.length()); = <%s>\n", csq01);
		System.out.printf("string.subSequence(0,  40); = <%s>\n", csq02);
	}
}

@@ -1,9 +1,8 @@
-%0A
 public c
@@ -24,17 +24,20 @@
 rings %7B%0A
-%09
+    
 static p
@@ -99,27 +99,24 @@
 -evident, %22 
-%0A%09%09
 + %22that all 
@@ -139,20 +139,29 @@
 equal, %22
- %0A%09%09
+%0A            
 + %22that 
@@ -232,12 +232,21 @@
 s, %22
- %0A%09%09
+%0A            
 + %22t
@@ -311,19 +311,21 @@
 ness.%22;%0A
-%09%0A%09
+%0A    
 public s
@@ -353,16 +353,17 @@
 g...
+ 
 args) %7B%0A
 %09%09Sy
@@ -358,18 +358,24 @@
 args) %7B%0A
-%09%09
+        
 System.o
@@ -407,21 +407,25 @@
 ngs!%22);%0A
-%09%09%0A%09%09
+%0A        
 System.o
@@ -455,21 +455,25 @@
 tring);%0A
-%09%09%0A%09%09
+%0A        
 // 1. Su
@@ -481,21 +481,25 @@
 strings%0A
-%09%09%0A%09%09
+%0A        
 String s
@@ -545,18 +545,24 @@
  - 10);%0A
-%09%09
+        
 String s
@@ -591,20 +591,23 @@
 g(0,
- 
  40);%0A
-%09%09%0A%09%09
+%0A        
 Syst
@@ -676,26 +676,32 @@
 n%22, str01);%0A
-%09%09
+        
 System.out.p
@@ -752,21 +752,25 @@
 str02);%0A
-%09%09%0A%09%09
+%0A        
 System.o
@@ -805,21 +805,25 @@
 ----%22);%0A
-%09%09%0A%09%09
+%0A        
 // 2. Su
@@ -833,21 +833,25 @@
 quences%0A
-%09%09%0A%09%09
+%0A        
 CharSequ
@@ -922,18 +922,24 @@
 gth());%0A
-%09%09
+        
 CharSequ
@@ -982,13 +982,17 @@
 0);%0A
-%09%09%0A%09%09
+%0A        
 Syst
@@ -1088,10 +1088,16 @@
 1);%0A
-%09%09
+        
 Syst
@@ -1162,9 +1162,12 @@
 2);%0A
-%09
+    
 %7D%0A%7D%0A

Update HelloSubstrings.java