工作常用技巧JAVA篇
文章平均质量分 62
下坡用脚刹
理论结合实践,可以迸发出耀眼的光芒
展开
-
JAVA线程使用指南
线程的创建,守护线程 package com.hw.test.day1109; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Demo2 { public static void main(String[] args) { Thread1 thread1 = new Thr原创 2020-11-13 21:26:27 · 75 阅读 · 0 评论 -
JAVA常用的一些技巧(提高程序效率)
1.当需要首字母大写时 String str= "HbcdefggGG"; byte[] bytes = str.getBytes(); //ASCII码中,a-z对应97-122,而A-Z对应65-90; if (bytes[0] >= 97) { bytes[0] -= 32; }点评:此方法可原创 2017-12-11 09:57:44 · 653 阅读 · 0 评论