4430 - Java 소스 코드 포맷팅

Time Limit: 1s Memory Limit: 128MB

Submissions: 1387 Solved: 326
Description

next-line brace styleend-of-line brace style로 변환 하는 프로그램을 작성하시오.

예를 들어, 다음 (a)Java codenext-line brace style이고, (b)end-of-line brace style입니다.

여러분의 프로그램은 Java source code file로부터 Command lineargument로 전달 받습니다.

Command lineend-of-line brace style로 변환 해야 합니다.

Write a program that converts the Java source code from the next-line brace style to the end-of-line brace style.

For example, the following Java source in (a) uses the next-line brace style. Your program converts it to the end-of-line brace style in (b).

Your program can be invoked from the command line with the Java sourcecode file as the argument.

It converts the Java source code to a new format.

For example, the following command converts the Java source-code file Test.java to the end-of-line brace style.

 

Input

next-line brace style인 자바 소스코드

Output

end-of-line brace style인 자바 소스코드

Sample Input
public class Test
{
	public static void main(String[] args)
	{
		System.out.println("###");
	}
}
Sample Output
public class Test {
	public static void main(String[] args) {
		System.out.println("###");
	}
}
Source

JAVA2015 PE12.12