結果 : substring program in java without using substring method