Challenge
-
[Java] 명품 자바 프로그래밍(Java Programming) 7장 Open ChallengeCSE/Java 2015. 6. 13. 11:06
Phone.java 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 package ch07; public class Phone { private String name; private String address; private String phoneNumber; public Phone() { } public Phone(String name, String address, String phoneNumber) { super(); this.name = name; this.address = address; this.phoneNumber = phoneNumber; } public String getName()..
-
[Java] 명품 자바 프로그래밍(Java Programming) 6장 Open ChallengeCSE/Java 2015. 6. 13. 11:03
OpenChallenge.java 123456789101112131415161718192021222324252627282930313233343536373839404142 import java.io.IOException;import java.io.InputStreamReader; public class OpenChallenge06 { public static void main(String[] args) { InputStreamReader rd = new InputStreamReader(System.in); int[] histgram = new int[26]; int c = 0; try { while (true) { c = rd.read(); for (int i = 0; i
-
[Java] 명품 자바 프로그래밍(Java Programming) 5장 Open ChallengeCSE/Java 2015. 6. 13. 11:02
Product.java 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 package ch05; public class Product { private int id; private String describe; private String producer; private int price; public Product() { } public Product(int id, String describe, String producer, int price) { super(); this.id = id; this.describe = describe; this.pr..
-
[Java] 명품 자바 프로그래밍(Java Programming) 4장 Open ChallengeCSE/Java 2015. 6. 13. 11:00
OpenChallenge03.java 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 package ch03; import java.util.Scanner; public class OpenChallenge03 { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count = 0; String word = "아버지"; String nextWord = ""; System.out.print("게임에 참가하는 인원은 몇명입니까 >..
-
[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("..