publicclassTestCLOB{staticStringurl="jdbc:oracle:thin:@localhost:1521:orcl";staticStringdriver="oracle.jdbc.driver.OracleDriver";staticStringuserName="scott";staticStringpwd="tiger";publicstaticvoidmain(String[]args){try{addCLOB();//readCLOB();}catch(ClassN..
分类:
数据库 时间:
2015-02-24 23:33:06
阅读次数:
239
Time Limit:2000MS Memory Limit:65536KBDescriptionGiven a string consisting of brackets of two types find its longest substring that is a regular brack...
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".解题思路:这题比较基础,但想写对也不太容易。首先知道的一点,不能将数字直接Integer.pa...
分类:
其他好文 时间:
2015-02-24 21:02:42
阅读次数:
158
去bing上查了一下,果然有和我一样蛋疼的朋友,解决方法如下:public Type GetArrayElementType(Type t){string tName = t.FullName.Replace("[]", string.Empty);Type elType = t.Assembly....
分类:
编程语言 时间:
2015-02-24 19:50:28
阅读次数:
207
public class TestDelete { private static List files = new ArrayList(); public static void addJarsIntoList(String path1) { File d...
分类:
编程语言 时间:
2015-02-24 19:47:00
阅读次数:
118
C#两个窗口之间传递数据1 公用变量值传递 public partial class Form1 : Form //parent form { public string name=""; public Form1() { I...
场景:
1. C++可以使用std::string来缓存uint8_t的字节数组,比如在接收socket数据包时, 需要接收完整才可以处理某些数据,这时候就需要先缓存起来再处理。
2. 问题来了,Java的String是存储的UNICODE双字节结构,而且只支持字符,不支持如\0这些字符,并不适合处理字节数据....
分类:
编程语言 时间:
2015-02-24 17:33:56
阅读次数:
189
//Notes: 1、每个结果最后有2个\n\n 2、'A'->'A' 'B'->' ' 'E'->'3' 3、0与O要一样#include using namespace std;#include #include #include #include string str0 = "_A...
分类:
其他好文 时间:
2015-02-24 17:30:01
阅读次数:
108
在JVM中有一些经常使用的MBeans,能够写个代码获取到:public class Test { public static void main(String[] args) throws Exception { MBeanServer server = ManagementF...
分类:
编程语言 时间:
2015-02-24 17:25:21
阅读次数:
216
public static String byte2HexString(byte[] b){ String ret = ""; for(int i=0;i String (十六进制)3 byte ==>intbyte b;int i=b&0Xff;分析 :byte -->...
分类:
其他好文 时间:
2015-02-24 16:16:04
阅读次数:
203