3장
-
[Java] 명품 자바 프로그래밍(Java Programming) 3장 실습문제 12번CSE/Java 2015. 6. 13. 11:00
1234567891011121314151617181920212223242526272829303132333435 package ch02; public class Practice12 { public static void main(String[] args) { int tenLine = 0; int clappingCount = 0; int threesixnine = 0; boolean flag = false; for (int i = 1; i
-
[Java] 명품 자바 프로그래밍(Java Programming) 3장 실습문제 2번CSE/Java 2015. 6. 13. 10:59
123456789101112131415161718192021222324 package ch02; import java.util.Scanner; public class Practice02 { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scan = new Scanner(System.in); char character; System.out.print("알파벳 한 문자를 입력하세요"); character = scan.nextLine().charAt(0); for (int i = character; i >= 97; i--) { for (int j = 97; j
-
[Java] 명품 자바 프로그래밍(Java Programming) 3장 Open ChallengeCSE/Java 2015. 6. 13. 10:58
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 package ch02; import java.util.Random;import java.util.Scanner; public class OpenChallenge02 { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scan = new Scanner(System.in); Random rnd = new Random(); boolean gameFlag = true; int count = 1; int randomNum = 0; int..