举例1:使用BeanUtils工具封装用户提交的数据。 1 public static
void main(String[] args)throws Exception { 2 3 // 模拟用户的输入的数据如下 4 5 String name =
"XML基础"; ...
分类:
其他好文 时间:
2014-05-12 12:05:34
阅读次数:
211
已知在Java中,boolean、byte、short、int、long、char、float、double这八种是基本数据类型,其余的都是引用类型,比如String、数组、接口、对象等。
当我们声明一个引用类型变量时,系统只为该变量分配了引用空间,并未创建一个具体的对象; 当用new为对象...
分类:
其他好文 时间:
2014-05-12 11:58:21
阅读次数:
342
using System;using
System.Collections.Generic;using System.Linq;using System.Text;namespace
ConsoleApplication1{ class Program { static void Main(stri...
分类:
其他好文 时间:
2014-05-12 11:46:04
阅读次数:
215
题目:输入数字n,按顺序打印出从1到最大的n位十进制数,比如输入3,则打印出1,2,3一直到最大的3位数即999.分析:本题最关键的部分是当n值非常大的时候会超出数据类型的范围。偷个懒,没有实现打印1,2,3....999.可以利用分割把string分割成char[]。然后单个的char转为int再...
分类:
其他好文 时间:
2014-05-12 10:54:40
阅读次数:
255
C#控制台测试 class Program { static void Main(string[]
args) { decimal rmb = Convert.ToDecimal(Console.ReadLine()); ...
分类:
其他好文 时间:
2014-05-12 10:42:25
阅读次数:
377
protected void Page_Load(object sender, EventArgs
e) { int value = 0;//初始值 Test(ref value); Response.Write(val...
分类:
其他好文 时间:
2014-05-12 10:36:16
阅读次数:
277
function Box(){}var box = new
Box();alert(box.prototype); //使用对象实例无法访问到prototypealert(box._proto_);
//输出[object][object] 使用对象实例可以访问prototype的指针alert.....
分类:
其他好文 时间:
2014-05-12 10:09:33
阅读次数:
255
原谅我这个小白到现在才搭建好apache....之前都是无限次的 cd
mysite(第一个django project啊,就没变过= =),python manage.py
runserver然后我就可以在127.0.0.1:8000中访问了....我原以为ubuntu下的软件永远是sudo ap...
分类:
其他好文 时间:
2014-05-12 09:50:59
阅读次数:
478
1、选择表达式中的类型转换public class Test { public void static
main(String args[]){ int i = 5; System.out.println("Vlaue Is " + ((...
分类:
编程语言 时间:
2014-05-12 09:39:52
阅读次数:
294
Given an integer, convert it to a roman
numeral.Input is guaranteed to be within the range from 1 to 3999.public class
Solution { public String int...
分类:
其他好文 时间:
2014-05-10 20:31:10
阅读次数:
335