码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
Java编写一个四位数的随机验证码
importjava.util.Random; /* 随机数类 Random 需求:编写一个函数随机产生四位的验证码。 */ publicclassDemo5{ publicstaticvoidmain(String[]args){ /* Randomrandom=newRandom(); intrandomNum=random.nextInt(10)+1;//产生的随机数就是0-10之间 System.out.p..
分类:编程语言   时间:2016-05-24 22:50:03    阅读次数:251
openssl生成自签名证书
1、生成x509格式的CA自签名证书 openssl req -new -x509 -keyout ca.key -out ca.crt 2、生成服务端的私钥(key文件)及申请证书文件csr文件 openssl genrsa -des3 -out server.key 1024 openssl r ...
分类:其他好文   时间:2016-05-24 22:12:52    阅读次数:352
使用my exclipse对数据库进行操作(2)
二、增加 public static void main(String[] args) { //TODO Auto-generated method stub //4.用户输入需要添加的项目 Scanner sc = new Scanner(System.in); System.out.printl ...
分类:数据库   时间:2016-05-24 20:38:06    阅读次数:218
How to find out which process is listening upon a port
When we covered port scanning a short while ago we discovered how to tell which ports had processes listening upon them, via port scanning. What we di... ...
分类:其他好文   时间:2016-05-24 19:07:36    阅读次数:171
软件测试:(实验一):加减乘除
package com.czh; public class Calculation {double a;double b;public void sum(){System.out.println(a+b);}public void sub(){System.out.println(a-b);}pub ...
分类:其他好文   时间:2016-05-24 16:52:56    阅读次数:287
C语言编程题目(二)
编写程序实现:(1)产生300个随机的四位数,然后将这些4位数保存到Rand.txt中;(2)统计Rand.txt 中个位数与千位之和等于十位与百位之和的数的个数;(3)对满足条件2的数将其逆序排列将其输出到out.txt中。 ...
分类:编程语言   时间:2016-05-24 16:35:00    阅读次数:155
简单登录系统
publicclassDemo8{ publicstaticvoidmain(String[]args){ if(args.length!=2){ System.out.println("输入的参数不正确,系统退出!"); System.out.println("格式:JavaLoginDemo8用户密码错误"); System.exit(1); } Stringname=args[0]; Stringpassword=args[1]; if..
分类:其他好文   时间:2016-05-23 22:52:54    阅读次数:196
svn merge
转:http://blog.csdn.net/keda8997110/article/details/21813035 Step by Step 完成merge 目录: Branch的必要性 1、本地Repository的创建 2、Check out 3、trunk创建新项目MyProject 4、 ...
分类:其他好文   时间:2016-05-23 22:39:22    阅读次数:222
我的Java——数组(3)
数组与增强的for语句 在JDK 1.5中,对于for语句进行了增强 因此在遍历数组的元素时更方便 基本格式:它在for语句中使用一个类型名 一个变量名 一个冒号 一个数组名 int []num={1,2,3,4,5} for(int n:num){ System.out.println(n); } ...
分类:编程语言   时间:2016-05-23 20:53:41    阅读次数:143
异常处理
publicclassDemo7{ publicstaticvoidmain(String[]args) { try{ intc=sum(3,4); //thrownewException(intc=sum(3,4);System.out.println(); System.out.println(c); }catch(Exceptione){ System.out.println(e); } } publicstaticintsum(inta,intb)throwsException{ re..
分类:其他好文   时间:2016-05-23 19:20:48    阅读次数:125
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!