字符串压缩

import java.util.Scanner;
public class Main{
	public static void main(String[] strs){
		Scanner sca = new Scanner(System.in);
		String str=sca.nextLine();
		int pointer=0;
		if(str==null||str.length()==0){
			System.out.println("");
			return;
		}
		StringBuffer sb = new StringBuffer();
		int count=0;
		for(;pointer

你可能感兴趣的:(字符串压缩)