Marvelous+Mazes

Source Code code format="java5"

import java.util.Scanner;

public class MarvelousMazes { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(scan.hasNextLine) { String line = scan.nextLine; int d = 0; for(char ch : line.toCharArray) { if(ch == '!') { System.out.println; }   else if(Character.isDigit(ch)) { d += ch - '0'; }   else if(ch == 'b') { printRepeat(d, ' '); d = 0; }   else { printRepeat(d, ch); d = 0; }   }    System.out.println; }   }    // Ư�� ���ڸ� �ݺ��ؼ� ����Ѵ�. private static void printRepeat(int n, char ch) { for(int i = 0; i < n; i++) { System.out.print(ch); }   }    }

code