Lab7
Lab7_1 TCP Client/Server
Lab7_2 UDP Client/Server
Lab7_3 HTTP
Lab7_4 ImageTransfer Client/Server (using TCP & Thread)
Lab7_5 PhotoToggleButton (using ImageUpload & Thread)
Lab7
Lab7_1 TCP Client/Server
Lab7_2 UDP Client/Server
Lab7_3 HTTP
Lab7_4 ImageTransfer Client/Server (using TCP & Thread)
Lab7_5 PhotoToggleButton (using ImageUpload & Thread)
Lab6 (updated)
Lab6_1 extends Thread vs implements Runnable
Lab6_2 Mutex (Mutual Exclusion Semaphore)
Lab6_3 Semaphore (e.g. TicketSeller & Producer-Consumer Problem)
Lab6_4 Monitor (e.g. SynchronizedCounter & Producer-Consumer Problem)
Lab6_5 SwingWorker (e.g.
Lab6_6 EventDispatchThread
Lab4
java2-lab4-ExtendedImageManager
Lab4_1 Comparable<Photo> Interface vs Comparator<Photo> Interface
Lab4_2 == vs equals vs hashCode
Lab4_3 lambda & stream API (Java8)
Lab4_4 ImageManager 클래스 작성, Iterator
Lab4_5 ImageFileManager, CSV File, JSON File I/O
Lab3-ImageManager
Lab3_1~ Lab3_5 프로젝트 디렉토리 안에 모든 파일(src/*.java & bin/*.class)와 보고서 (3~5장)를 넣고 Lab3_학번_이름.zip 압축한 후 e-learning(http://lms.dankook.ac.kr/index.jsp)으로 제출 & 보고서는 출력해서 수업시간에 제출
Lab3_1 – Photo class (static vs non-static, private vs public, getter vs setter), array of Photo
Lab3_2 – array of Photo from File Input
Lab3_3 – ImageConverter/ImageResizer
Lab3_4 – array of Photo
Lab3_5 – ArrayList of Photo
Lab2-DirectoryImageConverter
java2-lab2-DirectoryImageConverter
Lab2_1~ Lab2_5 프로젝트 디렉토리 안에 모든 파일(src/*.java & bin/*.class)와 보고서 (2~3장)를 넣고 Lab2_학번_이름.zip 압축한 후 e-learning(http://lms.dankook.ac.kr/index.jsp)으로 제출
Lab2_1 – array(String[] commands), foreach, parameter passing
Lab2_2 – String, class
Lab2_3 – String substring 메소드, file/directory
Lab2_4 – BufferedReader 클래스 (“commands.ini”)
Lab2_5 – recursive call
Lab1 – ImageConverter
Lab1_1~ Lab1_4 프로젝트 디렉토리 안에 모든 파일(src/*.java & bin/*.class)와 보고서 (2~3장)를 넣고 Lab1_학번_이름.zip 압축한 후 e-learning(http://lms.dankook.ac.kr/index.jsp)으로 제출
Lab1_1 – command line arguments
Lab1_2 – method
Lab1_3 – class
Lab1_4 – try/catch/throw & for-loop
Lab1_5 – Scanner 클래스 & do/while-loop
static boolean convert(String inputImageFile, String outputImageFile, String format) throws IOException {
// file I/O
FileInputStream inputStream = new FileInputStream(inputImageFile);
FileOutputStream outputStream = new FileOutputStream(outputImageFile);
// reads input image from file
BufferedImage inputImage = ImageIO.read(inputStream);
// writes to the output image in specified format
boolean result = ImageIO.write(inputImage, format, outputStream);
// needs to close the streams
outputStream.close();
inputStream.close();
// return result(true/false)
return result;
}
JDK 설치
IDE 설치
환경설정
이클립스를 사용한 자바 프로그램 작성
프로젝트 디렉토리 안에 보고서 (1~2장)를 넣고 Lab0_학번_이름.zip 압축한 후 e-learning(http://lms.dankook.ac.kr/index.jsp)으로 제출