forwarding="abcdedfgh";

out.println(forwarding.substring(2,5));

 

실행결과는 2번째 글짜부터 총 5번재글까지 즉, cde 이렇게 3자가 출력된다.