일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- GIT
- Source
- lsof
- DB 도메인
- 네트워크
- grep
- tomcat
- Eclipse
- resource
- Mac
- ssh
- import
- VirtualBox
- Windows
- web.xml
- xargs
- 공통표준용어
- Quartz
- JavaScript
- bash
- port
- IntelliJ
- netsh
- find
- copy-dependencies
- 단축키
- maVen
- context
- profile
- Windows 10
- Today
- Total
목록전체 글 (1649)
develog
public class TestCallback { public static void main(String[] args) throws Exception { TestCallback main = new TestCallback(); main.test(new ICallBack() { public void callbackMethod() { System.out.println(">> ICallBack.callbackMethod()"); } }); } public void test(ICallBack callback) { callback.callbackMethod(); }} interface ICallBack { public void callbackMethod();}
private void findDuplicateValue(String[] list) { for (int i = 0; i " + i + ". " + str1); break; } } } }
private String generate() { int len = 6; int rnum = (int) Math.floor(Math.random() * Math.pow(10, len)); StringBuffer sb = new StringBuffer(String.valueOf(rnum)); while (sb.toString().length() < len) { sb.append("0"); } return System.currentTimeMillis() + "_" + sb.toString();}
--클라이언트 IP, HOST, 프로그램명 정보SELECT SYS_CONTEXT('USERENV', 'IP_ADDRESS') , SYS_CONTEXT('USERENV', 'HOST') , SYS_CONTEXT('USERENV','MODULE')FROM DUAL
String str1 = "ABC";String str2 = new String("ABC");String str3 = "ABC"; System.out.println("str1 : " + str1);System.out.println("str2 : " + str2);System.out.println("str3 : " + str3);System.out.println(); System.out.println("str1.toString() : " + str1.toString());System.out.println("str2.toString() : " + str2.toString());System.out.println("str3.toString() : " + str3.toString());System.out.prin..
Object obj = new Object();System.out.println("1. " + obj.toString()); System.out.print("2. ");System.out.print(obj.getClass().getName());System.out.print("@");System.out.print(Long.toHexString(System.identityHashCode(obj)));System.out.println(); // console1. java.lang.Object@1c78e572. java.lang.Object@1c78e57