블로그 이미지

calendar

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
  • total
  • today
  • yesterday
2011. 4. 27. 16:45 JAVA언어
  1. public class Singleton {
    // Private constructor prevents instantiation from other classes
  2.    private Singleton() {}
  3. /**
  4. * SingletonHolder is loaded on the first execution of Singleton.getInstance()
    * or the first access to SingletonHolder.INSTANCE, not before.
    */
  5. private static class SingletonHolder {
  6. private static final Singleton INSTANCE = new Singleton();
  7. }
  8. public static Singleton getInstance() {
       return SingletonHolder.INSTANCE;

    }
  9. }

'JAVA언어' 카테고리의 다른 글

MySQL JDBC INSERT 시 AUTO INCREMENT 값을 알아내는 예제  (0) 2011.10.05
String 컴파일  (0) 2011.08.05
exepiton message printStackTrace처럼 찍기  (0) 2011.04.16
data DownLoad 코드  (0) 2011.02.09
jnid lookup / datasource 코드  (0) 2011.01.13
posted by 천상의날개
2011. 4. 16. 20:40 JAVA언어

StackTraceElement[] ss = e.getStackTrace();
System.out.println(e.getClass().getName()+":"+e.getMessage());
for(StackTraceElement a :ss){ 
     System.out.println("\tat "+a.getClassName()+"."+a.getMethodName()+"("+a.getFileName()+":"+a.getLineNumber()+")");
}

'JAVA언어' 카테고리의 다른 글

String 컴파일  (0) 2011.08.05
싱글톤 생성법(늦은 생성)  (0) 2011.04.27
data DownLoad 코드  (0) 2011.02.09
jnid lookup / datasource 코드  (0) 2011.01.13
httpClient 코딩  (0) 2011.01.13
posted by 천상의날개
2011. 3. 24. 16:51 JavaScript
border:1px solid red;
posted by 천상의날개
2011. 3. 24. 10:36 카테고리 없음
posted by 천상의날개
2011. 3. 20. 17:39 참조싸이트

'참조싸이트' 카테고리의 다른 글

과실주 담그는법  (0) 2012.05.10
안드로이드 참조  (0) 2011.04.29
괜찮은 note/메모 프로그램들  (0) 2011.01.10
네이트온 프록시 서버 사용  (0) 2010.10.18
오랜지 다운로드 사이트  (0) 2010.09.04
posted by 천상의날개
2011. 3. 10. 10:18 JavaScript

str.replace(/-/gi, "");
posted by 천상의날개
2011. 2. 28. 17:16 안드로이드

 

1. 실행 - cmd   <- 도스 실행


2. 콘솔 - C:\chcp 65001 <- 명령어 입력


3. 콘솔 - 속성 - 글꼴 - Lucida Console로 변경


4. 콘솔 - C:\adb logcat 



http://chonggi7.tistory.com/entry/DDMS-%ED%95%9C%EA%B8%80-%EA%B9%A8%EC%A7%90-Dos%EC%B0%BD%EC%97%90%EC%84%9C-logcat-%EC%9D%B4%EC%9A%A9 에서 퍼옴

'안드로이드' 카테고리의 다른 글

intent  (0) 2010.09.05
안드로이드 클래스 정의  (0) 2010.08.29
설치시 참조  (0) 2010.04.21
posted by 천상의날개
2011. 2. 9. 13:34 JAVA언어
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOUtils;
import org.apache.log4j.Logger;

URL       url    = new URL(http://어짜고저짜고);
InputStream     is    = url.openStream();
byte[]      file   = IOUtils.toByteArray(is);

'JAVA언어' 카테고리의 다른 글

싱글톤 생성법(늦은 생성)  (0) 2011.04.27
exepiton message printStackTrace처럼 찍기  (0) 2011.04.16
jnid lookup / datasource 코드  (0) 2011.01.13
httpClient 코딩  (0) 2011.01.13
log4jsql  (0) 2010.12.24
posted by 천상의날개
2011. 1. 20. 15:47 Database관련/Oracle

/*테이블 스페이스 생성 */
create tablespace test_tb datafile 'd:\test_tb.dbf' size 100M autoextend on next 5M;
/*사용자 생성 */
create user test identified by 111 default tablespace test_tb;

/*테이블 스페이스 삭제 */
drop tablespace test_tb including contents and datafiles;
/*사용자 삭제 */
drop user test ;

'Database관련 > Oracle' 카테고리의 다른 글

oracle Delete 후 commit 잘못해서 데이터 날려 먹었을때 sql  (0) 2013.03.21
sqlplus 외부접속  (0) 2013.03.21
sql xml로 바꿔서 출력 쿼리  (0) 2010.02.03
sqlplus copy 명령어  (0) 2010.01.29
export,import 명령어  (0) 2010.01.29
posted by 천상의날개
2011. 1. 13. 15:31 JAVA언어
제목!!

'JAVA언어' 카테고리의 다른 글

exepiton message printStackTrace처럼 찍기  (0) 2011.04.16
data DownLoad 코드  (0) 2011.02.09
httpClient 코딩  (0) 2011.01.13
log4jsql  (0) 2010.12.24
annotion사용법  (0) 2010.11.04
posted by 천상의날개