Scanner进阶使用 整数 package com.kuang.scanner; import java.util.Scanner; public class Demo04 { public static void main(String[] args) { Scanner scanner = n ...
分类:
其他好文 时间:
2021-03-02 12:18:14
阅读次数:
0
链接数据库 public static void main(String[] args) { //简约方式 try { Connection conn = DriverManager.getConnection("jdbc:mysql:/mysql?user=aa"); Statement st = ...
分类:
数据库 时间:
2021-03-02 12:02:39
阅读次数:
0
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
using System; using System.Text.RegularExpressions; public partial class RegexEx { /// <summary> /// 验证输入字符串是否与模式字符串匹配,匹配返回true /// </summary> /// <pa ...
分类:
其他好文 时间:
2021-03-02 11:46:45
阅读次数:
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
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
1. 安装需要应用的程序包 2. 准备配置文件 <?xml version="1.0" encoding="utf-8"?> <log4net> <!-- Define some output appenders --> <appender name="rollingAppender" type=" ...
分类:
Web程序 时间:
2021-03-01 13:34:26
阅读次数:
0
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
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