結果 : write a program to extract a substring from the given string in java