2019年2月19日
摘要: public static void main(string[] args){ int[] arr = {5,6,8,1,2,7,3}; for(int num :arr){ System.out.print("排序之前的数组:"+num); } for(int i=0;i<arr.length-1 阅读全文
posted @ 2019-02-19 15:49 guols 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 虚拟机jvm 包括 类加载机制 ,运行时数据区域 运行时数据区域包括 ,程序计数器,虚拟机栈和本地方法栈,堆,方法区。 程序计数器是一块较小的内存控件, 用来指定当前字线程执行节码的行数 ,每个程序计数器都是线程私有的。 虚拟机栈,每个方法执行的同时都会创建一个栈帧,用于存储局部变量表、操作数栈、方 阅读全文
posted @ 2019-02-19 13:53 guols 阅读(166) 评论(0) 推荐(0) 编辑
  2017年2月17日
摘要: public void sendwordToftp() { try { Json json = new Json(); String fileName = getRequest().getParameter("url"); fileName = fileName.substring(fileName 阅读全文
posted @ 2017-02-17 14:48 guols 阅读(852) 评论(0) 推荐(0) 编辑
  2017年2月8日
摘要: package email;import java.io.File;import java.util.Date;import java.util.Properties;import javax.activation.DataHandler;import javax.activation.FileDa 阅读全文
posted @ 2017-02-08 16:09 guols 阅读(162) 评论(0) 推荐(0) 编辑
  2016年12月26日
摘要: public static void insert() { // 开时时间 Long begin = new Date().getTime(); // sql前缀 String prefix = "INSERT INTO tb_big_data (count, create_time, random 阅读全文
posted @ 2016-12-26 22:02 guols 阅读(126) 评论(0) 推荐(0) 编辑
  2016年12月20日
摘要: package demo;import java.io.File;import java.sql.DriverManager;import java.sql.SQLException;import java.util.ArrayList;import java.util.Calendar;impor 阅读全文
posted @ 2016-12-20 12:59 guols 阅读(870) 评论(0) 推荐(0) 编辑
  2016年11月25日
摘要: package com.funo.timer;import java.util.Timer;public class MyTimer { public static void main(String[] args) { Timer timer =new Timer(); timer.schedule 阅读全文
posted @ 2016-11-25 21:41 guols 阅读(79) 评论(0) 推荐(0) 编辑
摘要: //本月1号0分0秒 Calendar cal = Calendar.getInstance(); //获取当前日期 cal.set(Calendar.HOUR_OF_DAY, 1);//设置当前时间的日期为1号 cal.set(Calendar.HOUR_OF_DAY, 0);//设置当前日期为0 阅读全文
posted @ 2016-11-25 21:39 guols 阅读(169) 评论(0) 推荐(0) 编辑
摘要: <div id="time" style="color: #96C2DD;</div> <script type="text/javascript"> setInterval(function(){ var time=new Date(); var year=time.getFullYear(); 阅读全文
posted @ 2016-11-25 10:54 guols 阅读(675) 评论(0) 推荐(0) 编辑
  2016年11月11日
摘要: SELECT SUM(co)FROM ( SELECT telephone, count(telephone) AS co FROM noteaddress GROUP BY telephone HAVING count(telephone) > 1 ) as a 阅读全文
posted @ 2016-11-11 18:18 guols 阅读(136) 评论(0) 推荐(0) 编辑