Wesley13 Wesley13
2年前
java入门笔记
System.out.println();输出int整数类型不能以数字开头区分大小写inta0int的范围2的31次方到2的31次方21亿左右2个int型运算后仍为int除法没有余数14/52%模运算14%54求余数.
Stella981 Stella981
2年前
Slick plain SQL如何传递List[Int]参数
最近用slick作为数据库访问框架,有些功能不好实现,用plainSQL,sql是根据查询条件生成的,所以参数也不是固定的个数。但StaticQuery\T,Entity\里面的T,默认只支持数据库支持的类型比如Int,Double等,以及对应的Optional,也可以支持Tuple1Tuple22,只要里面的类型是数据库支持的类型。但因为我要传
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
Wesley13 Wesley13
2年前
MongoDB 数据类型
一.MongoDB之数据类型Object ID:Documents自动生成的\_id,插入数据时候会生成 \_id,唯一字段String:字符串,必须是utf8Boolean:布尔值,true或者falseInteger:整数(Int32Int64你们就知道有个Int就行了,一般我们用Int32)Doub
Stella981 Stella981
2年前
C# string数组转int数组(转载)
Cstring数组转int数组(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fxuqp%2Fp%2F9681142.html)
Wesley13 Wesley13
2年前
mysql与oracle区别
编号ORACLEMYSQL注释1NUMBERint/DECIMALDECIMAL就是NUMBER(10,2)这样的结构INT就是是NUMBER(10),表示整型;MYSQL有很多类int型,tinyintmediumintbigint等,不同的int宽度不一样2Varchar2
Stella981 Stella981
2年前
Bmp24Writer代码
import java.io._object Bmp24Writer {//将加密的数据写入文件    def writeEncryptedBmp(bmpPath: String, keys: ArrayInt,     shift: Int, times: Int,     red
Wesley13 Wesley13
2年前
Java面向对象
1\.方法    方法就是对java代码功能的封装。1.1方法定义的格式\访问修饰符\\关键字\static\\返回值类型方法名(\参数列表\){}forexample:    public static int add(int a,int 
Wesley13 Wesley13
2年前
3springboot:springboot配置文件(配置文件占位符、Profile、配置文件的加载位置)
1.配置文件占位符RaandomValuePropertySourcr:配置文件可以使用随机数    ${random.value}    ${random.int} ${random.long}${random.int(10)}   ${random.int\1024,65535\}属性配置占位符