码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
2.Scanner的应用
import java.util.Scanner; public class TestScanner { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.print(" ...
分类:其他好文   时间:2016-05-27 23:22:45    阅读次数:179
要求用户输入数字,捕获并处理用户输入错误的异常,给用户进行提示
package a; import java.util.*; public class YiChang { public static void main(String[] args) { System.out.println("输入整数:"); try { Scanner a=new Scanne ...
分类:其他好文   时间:2016-05-27 20:16:15    阅读次数:212
移动页面100%自适应,媒体查询 - REM单位字体设置
/*媒体查询-字体设置*/ /*平滑过渡*/ html{-webkit-transition:font-size.2sease-out;transition:font-size.2sease-out;} /*设计稿宽度=640时,4rem=400px,1rem=100px,.5rem=50px,.1rem=10px以此类推*/ @mediascreenand(max-width:1280px){ html{font-size:200px;} } @mediascr..
分类:移动开发   时间:2016-05-27 18:45:47    阅读次数:638
halcon学习笔记——(1)单摄像机标定
In the reference manual,operator signatures are visualized in the following way: operator ( iconic input : iconic output : control input : control out ...
分类:其他好文   时间:2016-05-27 14:33:21    阅读次数:164
javaIOzongji
// System.out.println(buildCartTypes()); System.out.println(buildInfos()); //读取文件操作 //1、使用BufferReader ,FileReader进行读取 String filePath = "."+File.separator+"data"+File.separator+"car.dat"; ...
分类:编程语言   时间:2016-05-27 12:12:33    阅读次数:233
浅谈设计模式的六大原则
一,单一职责原则:就一个类而言,应该仅有一个引起它变化的原因(就是实现类要责任单一) 英文--Single Responsibility Principle  简写:SRP 举个例子:    父类:Animal public class Animal { void move(String animal){ System.out.println(animal + "是主要用脚来...
分类:其他好文   时间:2016-05-27 11:46:06    阅读次数:269
JavaString类的总结
因为需要在这里把String类涉及的各个方面总结一下,另给出了一下SCJP题目。如有不足的地方,请在评论中指教,谢谢。   一、不变模式: 一个字符串对象创建后它的值不能改变。 String str1="hello";//创建一个对象hello,不会变; System.out.println(str1); str1+=" world!";//两个字符串对象粘粘,系统其实创建了一个新的对...
分类:编程语言   时间:2016-05-27 11:31:09    阅读次数:203
获取当前工程路径
1、利用System.getProperty()函数获取当前路径:System.out.println(System.getProperty("user.dir"));//user.dir指定了当前的路径 2、使用File提供的函数获取当前路径:File directory = new File(" ...
分类:其他好文   时间:2016-05-27 00:30:14    阅读次数:217
[javaSE] 集合框架(迭代器)
当我们创建一个集合以后,可以直接使用system.out.println()来打印这个集合,但是,我们需要可以对每个元素进行操作,所以,这里需要使用迭代器来遍历集合 迭代器其实就是集合取出元素的方式 调用List对象的iterator()方法,得到Iterator对象,这个类是个接口类型,因此可以知 ...
分类:编程语言   时间:2016-05-26 23:22:39    阅读次数:294
Linux实时查看Tomcat调试信息
方法一:#tail-f/usr/local/tomcat/logs/catalina.out备注:Ctrl+c是退出tail命令。方法二:#servicetomcatstop#cd/usr/local/tomcat/bin#./catalina.shrun
分类:系统相关   时间:2016-05-26 22:15:36    阅读次数:414
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!