一. 数据类型的拓展 public class Demo03 { public static void main(String[] args) { // // 整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x // int i1 = 10; // 十进制的10就是10 int i2 = ...
分类:
编程语言 时间:
2021-03-08 13:29:25
阅读次数:
0
今天练习数组发现一个关于数组的小练习,记录一下; `public class ArrayPrintTest { public static void main(String[] args) { int[] arr = new int[]{1,2,3}; System.out.println(arr) ...
分类:
编程语言 时间:
2021-03-08 13:04:49
阅读次数:
0
1、resources目录下添加c3p0-config.xml文件 1 <?xml version="1.0" encoding="UTF-8"?> 2 <c3p0-config> 3 <!-- 默认配置,如果没有指定则使用这个配置 --> 4 <default-config> 5 <!-- 初始化 ...
分类:
其他好文 时间:
2021-03-06 15:09:12
阅读次数:
0
中间件推荐 1.1.1. 列表 谷歌翻译欢迎查看原文 https://github.com/gin-gonic/contrib/blob/master/README.md RestGate - REST API端点的安全身份验证 staticbin - 用于从二进制数据提供静态文件的中间件/处理程序 ...
分类:
其他好文 时间:
2021-03-06 15:05:34
阅读次数:
0
方法是语句的集合,在一起执行一个功能。 System.out.printIn() System是一个类,out是一个具体对象,printIn()是一个方法。 方法包含在类或者对象中,在其他地方可以被引用。 原子性:原则上一个方法只做一个功能。 public static void main(Stri ...
分类:
编程语言 时间:
2021-03-06 15:03:45
阅读次数:
0
参考:https://www.cnblogs.com/ngy0217/p/9006716.html 饿汉式(线程安全,调用效率高,但不能延时加载): public class ImageLoader{ private static ImageLoader instance = new ImageLo ...
分类:
编程语言 时间:
2021-03-06 14:58:12
阅读次数:
0
 ...
分类:
其他好文 时间:
2021-03-06 14:46:14
阅读次数:
0
package operator; public class Demo01 { public static void main(String[] args) { //二元运算符 //Ctrl+D 复制当前行到下一行 int a=10; int b=20; int c=30; int d=40; Sy ...
分类:
其他好文 时间:
2021-03-06 14:45:10
阅读次数:
0
什么是面向对象 回顾方法的定义与调用 方法的定义 import java.io.IOException; //Demo01 类 public class Demo01 { //main方法 public static void main(String[] args) { } public Strin ...
分类:
编程语言 时间:
2021-03-06 14:43:03
阅读次数:
0
利用循环打印出三角形 public class Demo13 { public static void main(String[] args) { for (int i = 1; i <=5; i++) { for (int d = 5;d>=i;d--){ System.out.print(" " ...
分类:
编程语言 时间:
2021-03-06 14:31:15
阅读次数:
0