public String countAndSay(int n) {
		
		String result = "1";
		if (n == 1) return result;
		
		for (int i = 2; i <= n; i++) {
			int count = 1;
			StringBuilder temp = new StringBuilder();
					
			for (int j = 1; j <= result.length()-1; j++) {
				
				if (result.charAt(j) == result.charAt(j-1)) {
					count++;
				} else {
					temp.append(Integer.toString(count)).append(result.charAt(j-1));
					count = 1;
				}
			} // end of inner loop
			
			temp = temp.append(Integer.toString(count)).append(result.charAt(result.length()-1));
			result = temp.toString();
		} // end of outer loop
		
		return result;
	} // end of countAndSay()