개정판
-
[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..
-
[Java] 명품 자바 프로그래밍(Java Programming) 2장 Open ChallengeCSE/Java 2015. 6. 13. 10:58
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657package ch01; import java.util.Scanner; public class OpenChallenge01 { @SuppressWarnings("resource") public static void main(String[] args) { String cVar = ""; String yVar = ""; Scanner scan = new Scanner(System.in); System.out.println("가위 바위 보 게임입니다. 가위, 바위, 보 중에서 입력하세요"); System.out.print("..