码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
三元运算符
public class demo5 { public static void main(String[] args) { int a = 10; int b = 20; a+=b;//a = a+b a-=b;//a = a-b System.out.println(a); //字符串连接符 Sy ...
分类:其他好文   时间:2021-03-02 11:50:18    阅读次数:0
类型转换错误使用
public static void main(String[] args) { int num1 = 10_0000_0000; int rate = 20; long total = num1 * rate; System.out.println(total);// 输出为-1474836480 ...
分类:其他好文   时间:2021-03-01 14:18:24    阅读次数:0
逻辑运算符、位运算符
public class demo4 { //逻辑运算符 public static void main(String[] args) { //与(&&)或(||)非(!) boolean a = true; boolean b = false; System.out.println(a && b) ...
分类:其他好文   时间:2021-03-01 14:15:22    阅读次数:0
分页查询
1)注册分页插件(@Configuration) @Bean public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); } 2) 使用 @Test void testPage( ...
分类:其他好文   时间:2021-03-01 14:15:10    阅读次数:0
【YbtOJ#608】前缀编码
题目 题目链接:https://www.ybtoj.com.cn/contest/127/problem/1 \(n,\sum|S|\leq 5\times 10^5\)。 思路 由于每一个 ? 只能填 \(0\) 或 \(1\),不难想到 2-sat。 将串安装长度排序,把每一个 ? 分别当作 \ ...
分类:其他好文   时间:2021-03-01 14:04:29    阅读次数:0
Decorator模式
动机:在软件设计过程中,如果责任划分不清楚,随着需求的变化,子类极具膨胀,同时充斥着相同的代码。这时候需要划清责任。 一个示例程序: 1 class Stream 2 { 3 public: 4 virtual void read() = 0; 5 virtual void write() = 0; ...
分类:其他好文   时间:2021-03-01 13:45:11    阅读次数:0
关于split切割的几种情况
public class splitTest { public static void main(String[] args) { String a = "@123"; String b = "123@"; String c = "3@@@"; String[] aArr = a.split("@" ...
分类:其他好文   时间:2021-03-01 13:34:57    阅读次数:0
用BMfont制作自定义美术中文字体时,导出的图是黑白的问题
step1:Options->Font settings设置 Charset设置为Unicode,其他保持默认。 step2:Option->Export options设置。 Bit depth一定要设置为32,否则只显示黑白字体。 其他按下图设置 step3:Edit->Open Image M ...
分类:其他好文   时间:2021-03-01 13:33:32    阅读次数:0
java基本运算符解析(1)
java基本运算符解析(1) 基本加减乘除间运算 public class Demo1 { public static void main(String[] args) { int a = 20; int b = 30; int c = 40; int d = 25; System.out.prin ...
分类:编程语言   时间:2021-03-01 13:30:50    阅读次数:0
MergeSort归并排序(罗召勇版)
1 package mergesort; 2 3 import java.util.Arrays; 4 5 public class MergeSort { 6 public static void main(String[] args) { 7 int[] arr = new int[]{11, ...
分类:编程语言   时间:2021-03-01 13:28:05    阅读次数:0
62627条   上一页 1 ... 66 67 68 69 70 ... 6263 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!