일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- html
- asp.net
- Redirect
- Web Service
- MANTIS
- C#
- Maven
- Eclipse
- MSsql
- MS-SQL
- Android
- 자바
- 웹뷰
- 웹 서비스
- javascript
- Bootstrap
- decompiler
- Java
- 컬럼명
- WebView
- STS
- scrollView
- 이클립스
- 자바스크립트
- Apache Lucene
- jsp
- 안드로이드
- TextBox
- varags
- SpringSource Tool Suite
- Today
- Total
목록자바 (15)
bboks.net™
1. FileStream private static void copyFileUsingFileStreams(File source, File dest) throws IOException { InputStream input = null; OutputStream output = null; try { input = new FileInputStream(source); output = new FileOutputStream(dest); byte[] buf = new byte[1024]; int bytesRead; while ((bytesRead = input.read(buf)) > 0) { output.write(buf, 0, bytesRead); } } finally { input.close(); output.clo..
아파치의 RandomStringUtils 사용 import org.apache.commons.lang.RandomStringUtils; public class RandomStringUtilsTest { int length = 10; String randomString = RandomStringUtils.random(length, true, true); System.out.println(randomString); } Maven Repositoryhttp://mvnrepository.com/artifact/org.apache.commons/commons-lang3/3.3.2 org.apache.commons commons-lang3 3.3.2 [출처] 자바 (Java)에서 랜덤 (Random) 문자열 (St..
import java.lang.reflect.Method; public class BrowserControl { /** * Method to Open the Broser with Given URL * * @param url */ public static void openUrl(String url) { String os = System.getProperty("os.name"); Runtime runtime = Runtime.getRuntime(); try { // Block for Windows Platform if (os.startsWith("Windows")) { String cmd = "rundll32 url.dll,FileProtocolHandler " + url; Process p = runtim..
Java provides a mechanism for creating copies of objects called cloning. There are two ways to make a copy of an object called shallow copy and deep copy. Shallow copy is a bit-wise copy of an object. A new object is created that has an exact copy of the values in the original object. If any of the fields of the object are references to other objects, just the references are copied. Thus, if the..