码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
将数组里面的单词 倒序排列 例如 How old are you !? I don't understand -> understand don't I ?! you are old How
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
0516练习
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
java第一天
/******************************************************** * 浮点数的计算 * * System.out.println("整形和浮点型的除法比较:"); * * System.out.println("10 / 3 * 3=" + 10 / ...
分类:编程语言   时间:2016-05-16 14:10:08    阅读次数:136
java 练习题2
// 题目:一球从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
MHA自动Failover过程解析(updated) 转
允许转载, 转载时请以超链接形式标明文章原始出处和网站信息 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
[Javascript] String method: endsWith() && startsWith()
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
利用条件运算符的嵌套来完成此题:学习成绩> =90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!