public static void main(String[] args) { char[] chars= new String("How old are you !? I don't understand").toCharArray(); System.out.println("the firs ...
分类:
编程语言 时间:
2016-05-16 14:26:37
阅读次数:
173
package com.text_1; public class XiYouJiRenWu { //输入游戏名字 String name; //身高 double height; //武器 String weapon; //显示名字 void shuchu() { System.out.printl ...
分类:
其他好文 时间:
2016-05-16 14:22:46
阅读次数:
194
double a = 1.0; double b = 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1; System.out.println("a=" + a + ";b=" + b); System.out.println(a = ...
分类:
其他好文 时间:
2016-05-16 14:18:35
阅读次数:
156
/******************************************************** * 浮点数的计算 * * System.out.println("整形和浮点型的除法比较:"); * * System.out.println("10 / 3 * 3=" + 10 / ...
分类:
编程语言 时间:
2016-05-16 14:10:08
阅读次数:
136
// 题目:一球从100米高度自由落下,每次落地后反跳回原高度的一半;再落下,求它在???? 第10次落地时,共经过多少米?第10次反弹多高? double r=100; double x=0; for(int i=0;i<9;i++) { r=r/2; x=2*r+x; } System.out. ...
分类:
编程语言 时间:
2016-05-16 12:53:22
阅读次数:
145
允许转载, 转载时请以超链接形式标明文章原始出处和网站信息 http://www.mysqlsystems.com/2012/03/figure-out-process-of-autofailover-on-mha.html MHA自动Failover过程解析(updated) By zhang, ...
分类:
其他好文 时间:
2016-05-16 11:03:42
阅读次数:
248
1 final Integer num1 = new Integer(77); 2 final Integer num2 = 77; 3 4 final Integer num3 = new Integer(77); 5 final Integer num4 = 77; 6 7 System.out ...
分类:
其他好文 时间:
2016-05-16 09:28:21
阅读次数:
195
With endsWith && startsWith, you can easily find out whether the string ends or starts with some other string: example: So you don't need to write reg ...
分类:
编程语言 时间:
2016-05-16 07:05:24
阅读次数:
266
学java有一周了,可以说从一个小白一直走到现在,对java也有点认识了。 在这一周里用的最多的Java语句印象最深的就那么几句,比如:public.static.void.main Scanner.s=new.Scanner() System.out.print() 等等,对这些记记就能记住的东西 ...
分类:
其他好文 时间:
2016-05-16 00:20:35
阅读次数:
130
package com.hanqi; import java.util.*; public class xuexichengji { public static void main(String[] args) { // TODO 自动生成的方法存根 System.out.println("输入姓名 ...
分类:
其他好文 时间:
2016-05-15 22:52:50
阅读次数:
194