[이한출판사] 자바프로그래밍(java programming) 7장(7chapter) 워크북(workbook)
- 최초 등록일
- 2008.05.25
- 최종 저작일
- 2007.11
- 6페이지/
압축파일
- 가격 1,000원

소개글
[이한출판사] 자바프로그래밍(java programming) 7장(7chapter) 워크북(workbook) 실습과제 1,2입니다.
목차
chapter 07 실습 과제1.
◎ 구현
◎ 실험 평가
chapter 07 실습 과제2.
◎ 분석
◎ 구현
◎ 실험 평가
본문내용
nterface Crypto {
public char encript(char ch);
public char decript(char ch);
}
class AlgorithmTest {
private class NewAlgorithm implements Crypto
{
public char encript(char ch)
{
int input = (int) ch;
if (input>65530) { input -= 65535; }
input += 5;
return (char)input;
}
public char decript(char ch)
{
int input = (int) ch;
if(input <= 5) { input += 65535; }
input -= 5;
return (char) input;
}
}
public void run()
{
char e = `e`;
char h = `h`;
char a = `a`;
char n = `n`;
System.out.println("평 문 : "+e+h+a+n);
Crypto chiper = new NewAlgorithm();
e = chiper.encript(e);
h = chiper.encript(h);
a = chiper.encript(a);
n = chiper.encript(n);
System.out.println("암호문 : "+e+h+a+n);
e = chiper.decript(e);
h = chiper.decript(h);
a = chiper.decript(a);
n = chiper.decript(n);
참고 자료
없음
압축파일 내 파일목록
Exam0701.java
Crypto.class
AlgorithmTest$1.class
AlgorithmTest$NewAlgorithm.class
AlgorithmTest.class
Exam0701.class
w07_200311436_차석환.hwp
Exam0702.java
Shape.java
Circle.class
Exam0702.class
Rectangle.class
Shape.class