数据结构栈,利用栈实现字符串逆序输出

package none002;
import java.util.*;
import java.io.*;
//数据结构栈,利用栈实现字符串逆序输出
public class ReverseApp {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException{
		// TODO Auto-generated method stub

		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		Stack  sx=new Stack(20);
		
		System.out.println("please input words or sentence you want to reverse:");
		String s=br.readLine();
		for(int i=0;i

你可能感兴趣的:(数据结构及算法)