커뮤니티

고용노동부, 산업인력공단과 함께하는 강원도 유일한 기업중심 IT전문교육기관 ICT융합캠퍼스만의 특별한교육입니다.
공인 IT숙련기술인의 다양한 접근방법으로 전문가다운 실무교육을 받을 수 있습니다.

Category

교육강좌

언어 JAVA1 - 자바 문서 보는 법

페이지 정보

작성자 관리자 댓글 0건 조회 3,019회 작성일 20-06-01 17:02

본문

자바 문서 보는 법

수업소개

자립의 핵심기술은 공식 문서를 보는 법입니다. 공식문서를 보기 위해서는 자바에서 코드의 뼈대를 형성하는 몇가지 개념들에 대한 이해가 조금 필요합니다. 이 수업에서는 문서를 보기 위해서 필요한 약간의 개념과 그 개념을 바탕으로 문서를 보는 법을 같이 경험해봅니다.

 

 

 

강의1

 

 

 

강의2

 

 

 

강의3

소스코드

변경사항

1
2
3
4
5
6
7
8
9
10
11
public class ClassApp {
public static void main(String[] args) {
System.out.println(Math.PI);
System.out.println(Math.floor(1.6));
System.out.println(Math.ceil(1.6));
}
}

 

 

 

강의4

소스코드

변경사항

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
public class InstanceApp {
public static void main(String[] args) throws IOException{
PrintWriter p1 = new PrintWriter("result1.txt");
p1.write("Hello 1");
p1.close();
PrintWriter p2 = new PrintWriter("result2.txt");
p2.write("Hello 2");
p2.close();
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
}
}

 

 

 

강의5

소스코드

변경사항

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
public class InstanceApp {
public static void main(String[] args) throws IOException{
PrintWriter p1 = new PrintWriter("result1.txt");
p1.write("Hello 1");
p1.close();
PrintWriter p2 = new PrintWriter("result2.txt");
p2.write("Hello 2");
p2.close();
System.out.println(p1.toString());
p2.toString();
p2.write("Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
}
}

 

 

 

  • 트위터로 보내기
  • 페이스북으로 보내기
  • 구글플러스로 보내기

답변목록

등록된 답변이 없습니다.