上一页 1 ··· 6 7 8 9 10
摘要: source:http://eclipsesource.com/blogs/2014/04/11/3-good-reasons-to-avoid-arrays-in-java-interfaces/If you still find yourself defining methods like thispublic String[] getParameters();in an interface,... 阅读全文
posted @ 2014-04-14 07:24 testglen 阅读(167) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*-import urllib2, urllib, cookielibimport reimport getpassimport sqlite3import randomimport timeclass Discuz: def __init__(self,user,pwd,args): self.username =... 阅读全文
posted @ 2014-04-04 07:37 testglen 阅读(1608) 评论(0) 推荐(0) 编辑
摘要: 1. Why String is immutable in Java? (Security, String pool implementation, see more here)2. Can abstract class have constructor in Java? (Yes, detailed answer ishere)3. Which two methods is overridden... 阅读全文
posted @ 2014-03-29 11:58 testglen 阅读(158) 评论(0) 推荐(0) 编辑
摘要: The following example demonstrates how to make connection to a LDAP server using JNDI (Java Naming and Directory Interface) APIs in Java. The JNDI’s interfaces, classes and exceptions are available in... 阅读全文
posted @ 2014-03-28 07:04 testglen 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 看下面的例子: var i, list = []; for (i = 0; i < 2; i += 1) { list.push(function(){ console.log(i); }); } list.forEach(function(func){ func(); });我们将得到两次 "2" ,而不是预期的 "1" 和 "2" ,这是因为在 list 中的两个函数访问的变量 i 都是其上一... 阅读全文
posted @ 2014-03-28 06:50 testglen 阅读(144) 评论(0) 推荐(0) 编辑
摘要: import java.text.NumberFormat;import java.util.Locale;/** * How to format Number to different currency in Java. Following Java program * will show you, how you can display double value in different cu... 阅读全文
posted @ 2014-03-27 22:25 testglen 阅读(405) 评论(0) 推荐(0) 编辑
摘要: It's very simple to use the xml-rpc.net library, here is what you need to do:[XmlRpcUrl("http://url_to_your_server/api.php")]public interface ISumAndDiff : IXmlRpcProxy{ [XmlRpcMethod("your.remote.... 阅读全文
posted @ 2014-03-27 22:13 testglen 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10