Created
July 10, 2018 17:43
-
-
Save leehs99/cb7b7ce9ccea6d545a43565976c2fc36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
//Object : 그대로 출력하기 | |
//question : 입력이 주어진다. 입력은 최대 100줄로 이루어져 있고, 알파벳 소문자, 대문자, 공백, 숫자로만 이루어져 있다. | |
각 줄은 100글자를 넘지 않으며, 빈 줄은 주어지지 않는다. 또, 각 줄은 공백으로 시작하지 않고, 공백으로 끝나지 않는다. | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public class ex06 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
while (sc.hasNextLine()) { | |
String str = sc.nextLine(); | |
if (!(str.length()>100 || str.isEmpty())) { | |
} else { | |
break; | |
} | |
System.out.println(str); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment