码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
final变量中的宏替换
源代码1: public class Java15 { public static void main(String[] args) { String s1="疯狂java"; String s2="疯狂"+"java"; System.out.println(s1==s2); String str1="疯狂";...
分类:其他好文   时间:2016-05-12 20:22:05    阅读次数:146
JAVA——泛型类和泛型方法(静态方法泛型)
泛型类定义的泛型,在整个类中有效。如果被方法是用,那么 泛型类的对象明确要操作的具体类型后,所有要操作的类型就已经固定了。为了让不同的方法可以操作不同类型,而且类型还不确定。那么 可以将泛型定义在方法上。泛型类class Demo { public void show(T t) { System.out.println("show: "+t); }...
分类:编程语言   时间:2016-05-12 18:29:15    阅读次数:260
java开发常用类
Object类:超类,所有类的父类 equals(String str):用于比较两个对象(字符串)是否相等 toString() :返回字符串 System类:系统类  out:输出  in:接收键盘输入  exit():停止程序  currentTimeMillis():返回以毫秒为单位的当前时间 Math类:算法类  ceil(double d):小数点后为零 取整数,不为...
分类:编程语言   时间:2016-05-12 17:28:02    阅读次数:214
spring mvc在注解开发下表单提交到不了Controller方法的解决手段
这个问题很诡异,不太懂为什么,但是知道如何解决,如果知道为什么的话希望能评论我下! 表单提交代码如下: class="form clearfix" action="${website}register" method="post"> class="title">智能码控门禁系统class="in">注册/href="toLogin" class="out">登录 class="...
分类:编程语言   时间:2016-05-12 15:54:29    阅读次数:209
Java程序设计总复习题
Java程序设计总复习题   1、编写一个Java程序在屏幕上输出“你好!”。(p13,例1-1)  //programme name Helloworld.java  public class Helloworld {    public static void main(String args[]) {      System.out.print ("你好!" );     } ...
分类:编程语言   时间:2016-05-12 15:41:44    阅读次数:275
java增强for循环总结
今天总结一下for循环在java程序中的使用,先来看一下一般的for循环的使用方法:for(int i=0;i<10;i++) { System.out.println(i); }这里分别看一下这几种情况: 1. 三部分都为空for(;;) { System.out.println(0); }这个程序是个死循环,因为它缺少结束的条件。 2. 第二部分为空for(int i=0...
分类:编程语言   时间:2016-05-12 15:36:36    阅读次数:152
文件上传
一个简单的文件上传例子 1、客户端代码private static final String TAG = "uploadFile"; private static final int TIME_OUT = 10 * 1000; // 超时时间 private static final String CHARSET = "utf-8"; // 设置编码 /** * android上传文件到服务器...
分类:Web程序   时间:2016-05-12 13:04:53    阅读次数:378
[C++]二叉树应用--Huffman code
二叉树应用–Huffman code 赫夫曼(Huffman)树又称最优二叉树或最优搜索树,是一种带权路径长度最短的二叉树。 背景知识首先我们先讨论何为Huffman code。Max-Path of TreeGiven a binary tree, every node has a weight, then you need to find out the path that can make...
分类:编程语言   时间:2016-05-12 13:04:31    阅读次数:576
Java8简单的本地缓存实现
这里我将会给大家演示用ConcurrentHashMap类和lambda表达式实现一个本地缓存。因为Map有一个新的方法,在key为Null的时候自动计算一个新的value值。非常适合实现cache。来看下代码: public static void main(String[] args) { for (int i = 0; i 10; i++) System.out.p...
分类:编程语言   时间:2016-05-12 12:03:20    阅读次数:244
loadrunner:Action.c(4): Error -27796: Failed to connect to server "10.0.9.184:8080": [10060] Connection timed out
Action.c(4): Error -27796: Failed to connect to server "10.0.9.184:8080": [10060] Connection timed out (1) 在负载生成器的注册表HKEY_LOCAL_MACHINE/SYSTEM/Current ...
分类:其他好文   时间:2016-05-12 09:21:33    阅读次数:2017
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!