黑马程序员------网络编程1.1InetAddressInetAddress:构造方法私有,不能直接创建对象。InetAddress getByName(String host):在给定主机名的情况下确定主机的ip地址。InetAddress getLocalHost():返回本地主机。Inet...
分类:
其他好文 时间:
2015-06-15 23:53:19
阅读次数:
254
因项目需要最近使用ibatis,在使用查询语句的时候,想着通用性所以没有在配置文件里用N多的and 语句,而是如下:View Code页面上如此调用: String conditional=" user_no like concat('%', 'q', '%')"; in...
分类:
其他好文 时间:
2015-06-15 23:44:53
阅读次数:
242
双精度浮点型变量double可以处理16位有效数。在实际应用中,需要对更大或者更小的数进行运算和处理。Java在java.math包中提供的API类BigDecimal,用来对超过16位有效位的数进行精确的运算ConstructorBigDecimal(int/long/double/String)...
分类:
其他好文 时间:
2015-06-15 23:41:49
阅读次数:
114
JSON序列化1 public class Person2 {3 public int Id { get; set; }4 public string Name { get; set; }5 public int Age { get; ...
WebRequest 对象的使用// 待请求的地址string url = "http://www.cnblogs.com"; // 创建 WebRequest 对象,WebRequest 是抽象类,定义了请求的规定,// 可以用于各种请求,例如:Http, Ftp 等等。/...
分类:
Web程序 时间:
2015-06-15 23:31:36
阅读次数:
133
Implement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the plus + or ...
分类:
编程语言 时间:
2015-06-15 22:02:12
阅读次数:
292
${boundItem} 如果 否则 ${fn:substring(string, start, end)}${fn:contains(singlenews.keyword,'ifcontain')}
分类:
Web程序 时间:
2015-06-15 21:57:42
阅读次数:
175
private NewsData data; private void button3_Click(object sender, EventArgs e) //发送 { string x = textBox1.Text; //将输入框的内容...
分类:
其他好文 时间:
2015-06-15 21:54:35
阅读次数:
355
今天在实现一个保存用户设置到SharedPreferences时,出现了一个不能将数据保存到SharedPreferences中的情况。经过仔细的分析得出: android.content.SharedPreferences.Editor.putString(String key, String v...
分类:
移动开发 时间:
2015-06-15 21:50:02
阅读次数:
113
int -> Stringint i=12345;String s="";第一种方法:s=i+"";第二种方法:s=String.valueOf(i);这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢?String -> ints="12345";int i;第一种方法:i=I....
分类:
编程语言 时间:
2015-06-15 21:42:32
阅读次数:
136