import java.util.Scanner;
public class Stringreverse {
public static void main(String[] args) {
Scanner sr=new Scanner(System.in);
System.out.println("문자열 입력");
String str= sr.nextLine();
for(int i=str.length()-1; i>=0 ;i--){
System.out.println(str.charAt(i));
}
}
http://dynamide.tistory.com/1444
'Algorithm' 카테고리의 다른 글
피보나치 동적계획법 소스 (0) | 2015.05.20 |
---|---|
동적 프로그램과 분할정복의 차이 (0) | 2015.05.12 |
이진 탐색 순회 소스 (0) | 2015.05.03 |
이진 탐색 순회 개념 (0) | 2015.05.03 |
이진 탐색트리 삽입 (0) | 2015.05.03 |