自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

eapink的专栏

不积跬步,何以至千里

  • 博客(23)
  • 收藏
  • 关注

原创 CentOS 搭建SVN服务器及相关配置

说明:本文整合了网上多篇博客介绍,本人亲测可用。一、安装1.      检查是否安装了低版本的SVN# rpm -qa subversion2.      卸载旧版本SVN             # yum removesubversion3.      安装SVN# yum install subversion4.      验证已经安装的SVN版本信息#

2014-02-18 14:57:17 730

原创 MyEclipse安装目录下找不到Common\plugins

机器之前安装有MyEclipse 8.5,因为项目需要要安装MyEclipse 10.0,版本,但是安装后破解时发现MyEclipse 10.0安装目录下找不到 Common\plugins 这个文件夹,原来是因为之前已经安装了旧版本,所以在 C:\Users\[username]\AppData\Local\Genuitec 下已经存在 Common\plugins。解决方法:删除 C:

2014-01-09 10:38:11 5892

转载 log4j的配置与使用

1、 Log4j是什么?  Log4j可以帮助调试(有时候debug是发挥不了作 用的)和分析,要下载和了解更详细的内容,还是访问其官方网站吧: http://jakarta.apache.org/log4j 。2、Log4j的概念   Log4j中有三个主要的组件,它们分别是 Logger、Appender和Layout,Log4j 允许开发人员定义多个Logger,每个Lo

2014-01-08 17:05:35 638

原创 Maven的安装、配置以及STS等IDE配置Maven

之前从网上下载了一个spring mvc+mybatis+spring整合的项目,里面使用了maven这一项目管理工具,无奈只能将maven安装并配置到机器上才能运行项目。现将过程简单整理如下,本篇文章只讲述最简单的maven使用。1.下载maven可以到 http://maven.apache.org/download.cgi 下载maven的安装包。我下载了maven 3.

2014-01-06 13:14:19 5863 1

转载 Errors running builder '******' on project 等类似错误

使用STS、MyEclipse等IDE时,有时候新导入已有项目或者修改java源代码后点击保存,IDE 自动编译并热部署,提示如下错误:Errors occurred during the build.Errors running builder '*******' on project '项目名'.java.lang.NullPointerException产生原因:

2014-01-06 11:10:54 1046 1

转载 Java_HashMap的两种排序方式

Map map = new HashMap();map.put("d", 2);map.put("c", 1);map.put("b", 1);map.put("a", 3);List> infoIds = new ArrayList>(map.entrySet());//排序前for (int i = 0; i < infoIds.size(); i++) {

2013-09-10 20:25:49 572

转载 Eclipse快捷键大全

Eclipse快捷键大全(转载)Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上)Alt+← 前一个编辑的页面

2013-09-10 11:05:47 560

转载 java class文件生成jar包

进入dos操作符窗口cd进入要打成jar包的class文件所有文件夹目录jar cvf [生成jar的名称.jar]  [列出class文件]  //若有多个,以空隔隔开如:一。操作零散的单个或几个class文件jar cvf ibstool.jar com/cn/ibs/TurnD.class com/cn/ibs/TurnB.class 

2013-09-09 22:37:42 1491

原创 Java_9+8实训Day0906作业题

题目:编写一个游戏程序(游戏的外型风格可能有现代型、古典型,在未来的版本中可能还会有其他风格,比如哥特式(Gothic)等游戏中的场景有道路(Road)丛林(Jungle)房屋(Building)地道(Tunnel)实现:Road类package com.problem;public class Road { private

2013-09-09 14:41:36 698

原创 Java_9+8实训Day0905作业题

1、写一个猜数游戏,由程序生成一个100以内的整数,然后让用户猜,如果猜的数大于此数,告诉用户大了否则,如果小于该数,告诉用户小了,直到用户猜中为止。产生随机整数的方法如下:int number = (int)(Math.random()*100);package com.problem1;import java.util.Scanner;public clas

2013-09-06 14:51:23 1156

原创 java实现求解n宫格

n宫格:奇数阶宫格,使用1-n×n填入其中,使得每一行、每一列、正斜线和反斜线上每n个数的和都相等。解法:使用网上已有算法,具体见附录。public class N_nine { public static void main(String[] args){ solution(5); } public static void solution(int n){

2013-09-06 11:42:04 2382 1

原创 java实现求解所有九宫格

九宫格:在3×3的九宫格中,填入1到9之九个数,使得每一行、每一列、正斜线和反斜线上每3个数的和都相等。解法:直接dfs暴力搜索即可。public class Nine { static int[][] nine=new int[3][3]; static boolean[] used=new boolean[10]; public static void m

2013-09-06 10:30:48 4095

原创 面试题:Java编程之有条件的排列问题

题目:用1、2、2、3、4、5这六个数字,用java写一个main函数,打印出所有不同的排列,如:512234、412345等,要求:”4″不能在第三位,”3″与”5″不能相连.解析:这是一道有条件的全排列问题,注意因为有两个2存在,因此结果要去除重复的排列。解法:简单的dfs算法,使用java的类库可以极大缩短代码量并提高效率。import java.util.A

2013-09-03 15:31:54 830 2

原创 ZQUOJ1403Factoring Large Numbers解题报告

<br /> Factoring Large Numbers<br />memory limit: 65536KB time limit: 500MS<br />accept: 17 submit: 48<br />Description<br />One of the central idea behind much cryptography is that factoring large numbers is computationally intensive. In this context one

2011-06-01 13:11:00 787

原创 ZQUOJ1401 Substitution Cypher解题报告

<br />Substitution Cypher<br />memory limit: 65536KB time limit: 500MS<br />accept: 19 submit: 32<br />Description<br />Substitution cyphers are the simplest of cyphers where the letters of one alphabet are substituted for the letters of another alphabet.

2011-06-01 13:04:00 13001

原创 ZQUOJ1398 Fibonacci Numbers解题报告

<br />Fibonacci Numbers<br />memory limit: 65536KB time limit: 500MS<br />accept: 22 submit: 29<br />Description<br />A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. <br />f(1)

2011-06-01 12:59:00 1014

原创 ACM常用算法及其相应的练习题

<br />zt ACM的算法(觉得很好,有层次感)<br />OJ上的一些水题(可用来练手和增加自信) <br />(poj3299,poj2159,poj2739,poj1083,poj2262,poj1503,poj3006,poj2255,poj3094)<br />初期:<br />一.基本算法: <br />     (1)枚举. (poj1753,poj2965) <br />     (2)贪心(poj1328,poj2109,poj2586) <br />     (3)递归和分治法. <

2011-05-19 23:56:00 606

原创 ZQUOJ1395 / POJ2338解题报告

<br />Basic<br />memory limit: 65536KB time limit: 500MS<br />Description<br />The programming language Ada has integer constants that look like this: 123, 8#123#, 16#abc#. These constants represent the integers 123, 83 (123 base 8) and 2748 (abc base 16).

2011-05-18 23:29:00 1003

原创 POJ1007 DNA Sorting 解题报告

<br />DNA Sorting<br />Description<br />One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this measure is 5, since D is greater

2011-05-17 18:50:00 609

原创 POJ1006 Biorhythms 解题报告

<br />Biorhythms<br />Time Limit: 1000MS Memory Limit: 10000K<br />题目描述:<br />Description<br />人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。因为三个周期的周长不同,所以通常三个周期的高峰不会落在同一天。对于每个人,我们想知道何时三个高峰落在同一天。对于

2011-05-17 18:49:00 928 1

原创 ZQUOJ1396 Rock, Scissors, Paper 解题报告

Rock, Scissors, Papermemory limit: 65536KB time limit: 2500MSaccept: 18 submit: 44DescriptionBart's sister Lisa has created a new civilization on a two-dimensional grid. At the outset each grid location may be occupied by one of three life forms: Rocks, Sc

2011-05-17 18:47:00 819

原创 ZQUOJ1393 Ferry Loading II 解题报告

<br />Ferry Loading II<br />memory limit: 65536KB time limit: 500MS<br />accept: 9 submit: 20<br />Description<br />Before bridges were common, ferries were used to transport cars across rivers. River ferries, unlike their larger cousins, run on a guide li

2011-05-17 18:46:00 896

原创 ZQUOJ1392 Temple of Dune 解题报告

<br />Temple of Dune<br />memory limit: 65536KB time limit: 500MS<br />accept: 5 submit: 11<br />Description<br />The Archaeologists of the Current Millenium (ACM) now and then discover ancient artifacts located at the vertices of regular polygons. In gene

2011-05-17 18:39:00 996

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除