复制内容到剪贴板 程序代码
//获取系统当前时间
SimpleDateFormat sdfTime = new SimpleDateFormat("kk:mm:ss");
String nowTime = sdfTime.format(new Date());
//获取时间中除冒号以外的其他值
StringBuffer sba = new StringBuffer();
//获取kk
String astartTime = startTime.substring(0, 2);
//获取mm
String bstartTime = startTime.substring(3, 5);
SimpleDateFormat sdfTime = new SimpleDateFormat("kk:mm:ss");
String nowTime = sdfTime.format(new Date());
//获取时间中除冒号以外的其他值
StringBuffer sba = new StringBuffer();
//获取kk
String astartTime = startTime.substring(0, 2);
//获取mm
String bstartTime = startTime.substring(3, 5);
复制内容到剪贴板 程序代码
private Color getRandColor(int fc, int bc) { // 给定范围获得随机颜色
Random random = new Random();
if (fc > 255)
fc = 255;
if (bc > 255)
bc = 255;
int r = fc + random.nextInt(bc - fc);
int g = fc + random.nextInt(bc - fc);
int b = fc + random.nextInt(bc - fc);
Random random = new Random();
if (fc > 255)
fc = 255;
if (bc > 255)
bc = 255;
int r = fc + random.nextInt(bc - fc);
int g = fc + random.nextInt(bc - fc);
int b = fc + random.nextInt(bc - fc);