6번
-
[Java] 명품 자바 프로그래밍(Java Programming) 7장 실습문제 6번CSE/Java 2015. 6. 13. 11:07
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768package chap6; import java.util.Iterator;import java.util.Vector; abstract class GraphicObject { int x, y, w, h; public GraphicObject(int x, int y, int w, int h) { super(); this.x = x; this.y = y; this.w = w; this.h = h; } public abstract void view();} class Rect extends..
-
[Java] 명품 자바 프로그래밍(Java Programming) 6장 실습문제 6번CSE/Java 2015. 6. 13. 11:03
12345678910111213141516171819202122232425262728293031323334 package ch06; import java.io.IOException;import java.io.InputStreamReader; public class Practice06 { public static void main(String[] args) { InputStreamReader rd = new InputStreamReader(System.in); int c = 0; int count = 0; try { while (true) { c = rd.read(); if (65
-
[Java] 명품 자바 프로그래밍(Java Programming) 4장 실습문제 6번CSE/Java 2015. 6. 13. 11:01
Practice06.java 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 package ch03; import java.util.Scanner; public class Practice06 { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scan = new Scanner(System.in); Threater threater = new Threater(); while (true) { System.ou..