Wesley13 Wesley13
2年前
java Unicode 转为中文
public static String decodeUnicode(String theString) {    char aChar;    int len  theString.length();    StringBuffer outBuffer  new StringBuffer(len);   
Wesley13 Wesley13
2年前
java Clob类型 转String
1、我的数据库是oracle11g遇到取出来的字段是clob类型,但是所需要的是string类型,写一个转换函数就可以解决问题了。//Clob类型转StringpublicStringClobToString(Clobclob)throwsSQLException,IOException{
Wesley13 Wesley13
2年前
java 中链表的实现
//数据类 class DATA2{String key;String name;int age;}//定义链表类class CLType{DATA2 nodedatanew DATA2();CLType nextNodenull;//下
Stella981 Stella981
2年前
Scala 谜题
在Scala中,List\String\和List\Int\之间并没有继承关系,但是下面的代码竟然可以通过编译并且顺利运行:objectTestextendsApp{valstrList:List\String\List("a","b","c")valstrToIntList:List\Int
Wesley13 Wesley13
2年前
Java int与String互相转化大全
intString//int转化才stringintnum123456;//方法一会产生两个String对象Strings1num"";//方法二直接使用String类的静态方法,只产生一个对象Strings2String.valueOf(num);//方法三
Wesley13 Wesley13
2年前
JSON函数
string json_encode ( mixed $value , int $options  0 , int $depth  512  )//arrays are returned only if you don't define index.mixed json_decode ( stri
Stella981 Stella981
2年前
C# string数组转int数组(转载)
Cstring数组转int数组(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fxuqp%2Fp%2F9681142.html)
Stella981 Stella981
2年前
Bmp24Writer代码
import java.io._object Bmp24Writer {//将加密的数据写入文件    def writeEncryptedBmp(bmpPath: String, keys: ArrayInt,     shift: Int, times: Int,     red
Wesley13 Wesley13
2年前
C#深入浅出之数据类型
基本数据类型    C支持完整的BCL(基类库)名字,但是最好都统一使用关键字进行使用与开发,比如使用int而不是System.Int32,以及使用string类型时候应当使用string而不是Systen.String以及String。    作为一名拥有良好编写习惯的程序员,要一致!不要变来变去!整数类型
Stella981 Stella981
2年前
Golang中Int32转换为int16丢失精度的具体过程
1.类型转换代码Int32转换为int16会丢失精度,这是总所周知的,但是具体如何丢失精度的,请看下面的代码:vartmp1int32123424021vartmp2int16vartmp3uint16tmp2int16(tmp1)tmp3uint16(t