上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: package interview; /* * 数组元素先升后降找出最大值 */ public class FirstAESCLastDESC { public static void main(String[] args) { int[] arrays = {1,2,5,9,5,4}; System.out.println(arrays[searchMax(arrays... 阅读全文
posted @ 2018-07-26 08:49 javaTest 阅读(1224) 评论(0) 推荐(0) 编辑
摘要: 博客出处: http://www.importnew.com/28754.html 收到系统报警,查看一台机器频繁FULLGC,且该服务超时。 这是一台4核8G的机器, 使用jdk1.8.0_45-b14。 我们可以直接通过jstat等来观察。这次我先通过CPU开始。 top查看后该java进程的运 阅读全文
posted @ 2018-07-23 08:31 javaTest 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 博客出处: http://www.cnblogs.com/hellocsl/p/3969768.html?utm_source=tuicool&utm_medium=referral 深入理解JVM之JVM内存区域与内存分配 前言:这是一篇关于JVM内存区域的文章,由网上一些有关这方面的文章和《深入 阅读全文
posted @ 2018-07-23 08:19 javaTest 阅读(175) 评论(0) 推荐(0) 编辑
摘要: package test; import java.io.File; public class ShowDirectoryAndFiles { private int fileLevel;//文件所在的层数 public String createPrintStr(String name,int level) { String printStr = "";//输出的前缀 for... 阅读全文
posted @ 2018-07-20 07:53 javaTest 阅读(365) 评论(0) 推荐(0) 编辑
摘要: package test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; public class CreateArrayList { public static void main(String[] args) { List n... 阅读全文
posted @ 2018-07-18 21:26 javaTest 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 需求: _ abc_ _ _df_ _hgsdfsdi_; 输出: _hgsdfsdi_ _df_ _ _ abc_; 说明: _ 代表是空格; 阅读全文
posted @ 2018-07-16 21:28 javaTest 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 数组摆动排序: 就地排序数组,不需要额外数组,满足以下性质: nums[0]<=nums[1]>=nums[2]<=nums[3]... 阅读全文
posted @ 2018-07-10 18:15 javaTest 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 一、准备工作1) 用客户端工具(ssh client或者putty)连接到linux服务器。在root用户下输入命令vi /etc/hosts,用vi编辑hosts文件,如下:复制代码#127.0.0.1 localhost localhost.localdomain localhost4 loca 阅读全文
posted @ 2018-05-06 15:03 javaTest 阅读(1307) 评论(0) 推荐(0) 编辑
摘要: 1. pom文件中加载ueditor 以及相关的jar包 2. 下载jsp版本的UEditor,并将UEditor相关的文件放到static目录 3. 在static/UEditor 下找到ueditor.config.js,修改serverUrl: "http://localhost:8088/c 阅读全文
posted @ 2018-04-20 10:21 javaTest 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 修改/etc/selinux/config,把SELINUX=enforcing改成了SELINUX=disabled 阅读全文
posted @ 2018-03-20 16:59 javaTest 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页