Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- FileSystemObject
- utf-8
- 시놀로지
- euc-kr
- ASP
- println
- PHP GCM
- submit
- RTL88x2BU
- AC1300
- jquery 레이어
- synology
- 따라다니는 배너
- DS718+
- lsusb
- javascript
- Getrows
- 무선랜카드
- disabled
- 크로스 컴파일
- SQL Injection
- jQuery
- 커널
- Injection
- XMLHTTP
- include
- readonly
- ajax
- replace
- form
Archives
- Today
- Total
목록println (2)
아는 것이 좋은 것이다.
[Java] 문자열 세기 Length
String txt1 = "가나다라마"; String txt2 = "ABCDEF"; System.out.println(txt1.length()); // 출력 결과: 5 System.out.println(txt2.length()); // 출력 결과: 6
Java Programing
2014. 6. 1. 22:55
[Java] 로그 저장, System.out.println 데이터 저장
import java.io.*; public class SaveLog { public static void main(String[] args) throws FileNotFoundException { // TODO Auto-generated method stub File file = new File("Save.txt"); PrintStream printStream = new PrintStream(new FileOutputStream(file)); System.out.println("출력한다."); System.setOut(printStream); System.out.println("저장하고 출력하지 않는다."); } }
Java Programing
2014. 5. 7. 13:25