Is it possible to get substring from right hand hand(Reverse) direction using `substring()` in JAVA.
Example.
 Suppose `String S="abcdef"`,
 Can I get Substring "fedc" using `S.substring(S.length()-1,3)` ?
If it is not correct, please suggest me how to get Substring from right hand end(Reverse direction)??
['https://Stackoverflow.com/questions/51500657', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/10128375/']
You could reverse the string and use `substring`. Unfortunately `String` does not have that, but `StringBuilder` has it e.g.

```
new StringBuilder("abcdef").reverse().toString().substring(0,4);

```
You can reverse the string and find the substring

```
// reverse
String s = "abcdef";
StringBuilder builder = new StringBuilder(s);
String substring = builder.reverse().substring(0,3);

```