Java Explore
文章平均质量分 85
Focus on java language features and cases solution.So that we can explore/learn java together.
「已注销」
这个作者很懒,什么都没留下…
展开
-
Java Notes-14(DateAtHost Client, TinyHttpd Server, Socket Options)
Summary: DateAtHost Client, TinyHttpd Server, Socket OptionsSome deeply introduction of web/network related features in Java原创 2016-02-22 00:10:02 · 660 阅读 · 1 评论 -
Java Notes-12(Preferences API, The Logging API)
Summary:Preferences API, The Logging API原创 2015-05-09 16:40:43 · 1839 阅读 · 0 评论 -
Java Notes-11
Summary:Synchronized and Unsynchronized Collections, Properties原创 2015-05-02 13:19:54 · 882 阅读 · 0 评论 -
Java Notes-10
The Map Interface, Collection implementations introduction原创 2015-05-01 08:31:44 · 1308 阅读 · 0 评论 -
Java Notes-9
Summary: introduce the collection feature of Java. includes Set. List and Queue原创 2015-04-26 23:40:44 · 1107 阅读 · 0 评论 -
Java Notes-8
- The Lock class provides for exclusiveaccess by the owner of the lock by allowing only one party to hold the lock at a timethrough the lock() and unlock() methods. -In addition to the st原创 2015-01-25 21:56:52 · 785 阅读 · 0 评论 -
Java Notes-7
-One such related pair of patterns is the conceptof an executor service that manages tasks and that of a thread pool that services tasks inan efficient way.-The new Callable interface, whic原创 2015-01-08 22:51:30 · 1121 阅读 · 0 评论 -
java中判断目录是否存在
<br />Java2008-07-03 15:22:03阅读349评论0 字号:大中小 订阅<br />//判断c:/cache目录是否存在的代码,如果不存在则创建cache目录<br />String path="c://cache";<br />File dirname = new File(path); <br />if (!dirname.isDirectory()) <br />{ //目录不存在 <br /> dirname.mkdir(); //创建目录<br />} <br /原创 2010-12-30 21:53:00 · 13306 阅读 · 1 评论 -
java 数字转换成字符串
<br />各种数字类型转换成字符串型: <br /><br />String s = String.valueOf( value); // 其中 value 为任意一种数字类型。 <br /><br />字符串型转换成各种数字类型: <br /><br />String s = "169"; <br />byte b = Byte.parseByte( s ); <br />short t = Short.parseShort( s ); <br />int i = Integer.parseInt( s转载 2010-12-29 17:05:00 · 96397 阅读 · 3 评论 -
Java Notes-6
- The wait()and notify() methods of the Object class extend this capability by allowing us toexplicitly coordinate the waiting and running threads. -By executing wait() from a synchronized b原创 2015-01-01 11:19:42 · 856 阅读 · 0 评论 -
Java Notes-5
-Bounds use the extends keywordand some new syntax to limit the parameter types that may be applied to a generic type.class EmployeeList< T extends Employee & Ranked & Printable > { ... }-As we’ll see in this section, wildcards are Java’s way of introd原创 2014-12-14 16:42:54 · 938 阅读 · 0 评论 -
Java Notes-4
-Note that the jar command automatically adds a directory called META-INF to ourarchive.-Aside from attributes, you can put a few special values in the manifest file. One of these,Main-Class , a原创 2014-12-01 23:44:15 · 797 阅读 · 1 评论 -
Java Notes-3
-implements the ActionListener interface in addition toMouseMotionListener . ActionListener requires us to implement an actionPerformed() method that is called whenever an ActionEvent occurs.原创 2014-11-26 23:47:24 · 740 阅读 · 0 评论 -
Java Notes-2
-In Java, every class defines a new type (data type).-The JComponent class provides the framework for building all kinds of user interfacecomponents. Particular components—such as buttons, labels原创 2014-11-23 22:39:14 · 709 阅读 · 0 评论 -
Java Notes-1
C# has gone on to become a very good language in its own right, enjoying more innovation in recent years than has Java.But Java continues to spread on a wide variety of platforms.原创 2014-11-23 17:48:27 · 817 阅读 · 0 评论