2번
-
[Java] 명품 자바 프로그래밍(Java Programming) 5장 실습문제 2번CSE/Java 2015. 6. 13. 11:02
Calc.java 123456789101112package ch05; public abstract class Calc { protected int a; protected int b; public abstract void setValue(int a, int b); public abstract int calculate();} Colored by Color Scriptercs Add.java 12345678910111213141516 package ch05; public class Add extends Calc { public void setValue(int a, int b) { this.a = a; this.b = b; } public int calculate() { return a + b; } } Colo..
-
[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