분류 전체보기473 정규표현식 정리. ~ 2014. 12. 10. Passing String Array Parameter public class StringArrayParameter { public static void main(String[] args) { String[] strArray = new String[]{"Foo","Bar","Baz"}; stringConcat (strArray); Integer[] intArray = new Integer[]{1,2,3}; integerConcat (intArray); } static void stringConcat (String ... strings) { StringBuilder sb = new StringBuilder (); for (int i = 0; i < strings.length; i++) sb.append (strings [i]); System.out.printl.. 2014. 12. 5. Toggle 1 to 0 and 9 to 1 using xor { static int x = 0; // Toggles 1 to 0 and 0 to 1 using xor x ^= 1; // Call the method that expects a 1 or 0 [methodCallHere toggle:x]; } 2014. 11. 28. [정규식] b tag to strong var input = String("값\n\n\n\n\n\n\n"); var reg = new RegExp( '"\']|"[^"]*"|\'[^\']*\')*)>',"gim"); // console.info(reg); if(reg.test(input)){ alert ( 'ok' ); } console.info(input.replace(reg,"")); 2014. 11. 23. 이문세 2014. 11. 21. highlightjs 문법강조 1. https://highlightjs.org/ 접속 ■ “Get version 8.4” 클릭 2. highlight js 링크 복사 ■ css변경( https://highlightjs.org/static/demo/ ) 3. 초기화 스크립트 복사 첫화면에서 Usage 클릭 à 사용방법 https://highlightjs.org/usage/ 4. 적용 package net.softm.test;import java.util.Random;public class RandomTest { public static void main(String[] args) throws Exception { exec(); } public static String exec() { String rtn = ""; Random rando.. 2014. 11. 21. 이전 1 ··· 69 70 71 72 73 74 75 ··· 79 다음