自增,自减&&逻辑运算符&&位运算符 1 package operator; 2 3 public class Demo4 { 4 public static void main(String[] args) { 5 //++ -- 自增 自减 一元运算符 6 int a=3; 7 8 int b= ...
分类:
编程语言 时间:
2021-04-27 14:20:46
阅读次数:
0
此博客链接: 题解: 找大写26个字母的位置,26个字母可以重复M个 输入为N M,N测试用例个数,M为字母重复个数, 输出字母和处于第几位 代码 public class leetcode { public static void main(String[] args) { Scanner sca ...
分类:
其他好文 时间:
2021-04-27 14:19:47
阅读次数:
0
html <input id="upload_file" type="file" multiple @change="v_upload_files"/> 注意input file 是不支持v-model的,因为v-model是双向数据绑定,而input file里面的文件只能通过点击选取来进行变更。 ...
分类:
移动开发 时间:
2021-04-26 14:11:33
阅读次数:
0
关于GraphQL之前有描述,可以参考GraphQL 入门。但是这个入门写得不是很好,东拉西扯。为巩固所学我自己总结一下。 我们先定义一个类型系统: type Person { name: String! } type ClassRoom { tercher: Person! students: [ ...
分类:
其他好文 时间:
2021-04-26 14:10:12
阅读次数:
0
(1)同步块的设置和锁的选择,锁与同步块中处理语句直接的关系 设置Elevator(电梯对象)和Input(读入方法)两个线程,同步运行。 为了避免电梯在无需工作时轮询,将电梯的行为用synchronized封装起来,当满足“请求队列为空”、“电梯内无乘客”和“输入未停止”时,电梯用wait()停止 ...
分类:
其他好文 时间:
2021-04-26 13:59:01
阅读次数:
0
最近发现我们系统导出excel文件时由于是导出百万级数据导出,速度过慢并且内存占用多,故进行了下面的一次优化。 我们使用apache的poi进行excel文件操作 主要耗时: 1、从数据库得到需要导出的结果集耗时 2、将数据写入excel耗时 优化前 public abstract class Ba ...
分类:
其他好文 时间:
2021-04-26 13:58:43
阅读次数:
0
double a = 123456, b = 123456.1, c = 123456.12, d = 123456.123, e = 123456.126; Console.WriteLine(a.ToString("N")); //123,456.00 Console.WriteLine(b.T ...
完全数 : 其所有因子的的和等于该数(包括1,但是不包括该数字本身) package judgment;/** * 求1~1000的所有完全数 */public class Judgment { public static void main(String[] args) { for (int i ...
分类:
其他好文 时间:
2021-04-26 13:45:19
阅读次数:
0
写一个java文件 public static void main(String[] args) { String str1="abc"; String str2 ="abc"; String str3=new String("abc"); boolean b1= str1==str2; boole ...
分类:
其他好文 时间:
2021-04-26 13:44:32
阅读次数:
0
import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Problem53 { public static void main(String[] args) { ...
分类:
编程语言 时间:
2021-04-26 13:44:00
阅读次数:
0