我们上边所看到的Action都是return View();我们可以看作这个返回值用于解析一个aspx文件。而它的返回类型是ActionResult如 public ActionResult Index() { return View(); } 除了View()之外那我们这里还能用于返回什么值呢? ...
分类:
其他好文 时间:
2016-05-23 00:56:59
阅读次数:
325
21.编写一个Java应用程序,该程序包括3个类:Monkey类、People类和主类 E。要求: (1) Monkey类中有个构造方法:Monkey (String s),并且有个public void speak() 方法,在speak方法中输出“咿咿呀呀......”的信息。 (2)Peopl ...
分类:
编程语言 时间:
2016-05-23 00:46:36
阅读次数:
182
package a; public class Instrument { public void play() { System.out.println("弹奏乐器"); } } package a; public class Wind extends Instrument { public voi ...
分类:
其他好文 时间:
2016-05-23 00:37:20
阅读次数:
135
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> ... ...
分类:
其他好文 时间:
2016-05-23 00:33:54
阅读次数:
142
21.编写一个Java应用程序,该程序包括3个类:Monkey类、People类和主类 E。要求: (1) Monkey类中有个构造方法:Monkey (String s),并且有个public void speak() 方法,在speak方法中输出“咿咿呀呀......”的信息。 (2)Peopl ...
分类:
其他好文 时间:
2016-05-23 00:30:43
阅读次数:
132
这里面有一个注意的点是,如果现在要push x,且x等于当前存在的最小值(栈中已经有了x)时,也要把x进栈。否则当x出栈时,当前最小值也跟着出栈,但是原栈中最小值元素依然还有,此时最小值却发生了错误。 class MinStack { public: /** initialize your data ...
分类:
其他好文 时间:
2016-05-23 00:29:25
阅读次数:
167
package two; import java.util.Scanner; public class TestTwo { public static void Testtwo(String str) { // TODO Auto-generated method stub String[] str ...
分类:
其他好文 时间:
2016-05-22 23:20:54
阅读次数:
699
public class SQLUtil { /** * 加载.properties配置文件 * * @param file * @return */ public static Properties loadConfig(String file) { Properties properties = ...
分类:
其他好文 时间:
2016-05-22 23:06:27
阅读次数:
123
Listener概述 Listener的使用 使用Listener需要实现相应的Listener接口。 public class SessionListenerTest implements HttpSessionListener { public void sessionCreated(HttpS ...
分类:
其他好文 时间:
2016-05-22 23:04:37
阅读次数:
183
package jhgi; public class jixing { {} public static void main(String[] args) { // TODO Auto-generated method stub for(int s=1;s<3;s++){ for(int z=1;z ...
分类:
其他好文 时间:
2016-05-22 23:00:57
阅读次数:
165