- 博客(22)
- 资源 (5)
- 收藏
- 关注
原创 linux IO重定向
IO重定向【句柄值:含义】 见下。0 标准输入1 标准输出2 标准错误/dev/null 无底洞,有些不想要的输出信息可以送到这里。操作符> 输出重定向>> 输出重定向,追加模式管道| 左边命令的输出作为右边命令的输入。例子:>> ab.txt 追加到文件ab.txt>&2 重定向输出到标准错误...
2014-12-31 13:45:05 824
原创 linux 文件(查找/删除/移动/权限/链接/压缩)shell命令
Linux中包括两种链接:硬链接(Hard Link)和软链接(Soft Link),软链接又称为符号链接(Symbolic link)。类似Windows的快捷方式,为若干目录项之间建立联系。在Linux系统中,内核为每一个新创建的文件分配一个Inode(索引结点),每个文件都有一个惟一的inode号。为文件A创建硬连接文件B时,B指向的Inode同A,此时Inode计数为2.软连接的指
2014-12-31 10:42:29 1996 1
原创 Exception 异常
java.lang.Throwable是所有错误和异常的父类。只有它(或它的子类)的实例才可以被JVM抛出。The Throwable class is the superclass of all errors and exceptions in the Java language. Only objects that are instances of this class (or one
2014-12-28 18:28:29 1724 1
原创 java.net 网络相关
java.net.InetAddress代表IP地址。This class represents an Internet Protocol (IP) address. String java.net.InetAddress.getHostAddress()获得String格式的主机IP地址。Returns the IP address string in textual p
2014-12-28 18:20:53 656
原创 Properties 盛放配置及监控变化
import java.io.*; import java.util.Date;import java.util.Properties; public class TestProperties { public static void main(String args[]) throws IOException { te
2014-12-28 11:50:30 819
原创 内部类
import java.util.Timer;import java.util.TimerTask;import java.util.concurrent.TimeUnit;public class A { public static void main(String[] args) throws InterruptedException { Timer timer= n
2014-12-28 10:34:29 835
原创 原子类 与 volatile
AtomicInteger、Long、etcint java.util.concurrent.atomic.AtomicInteger.addAndGet(int delta)原子性地给当前值增加指定的值,然后返回新值。Atomically adds the given value to the current value.//: concurrency/AtomicIntegerTes
2014-12-27 19:40:08 765
原创 java.nio
java.nio.channels.Channel一个channel代表着一个对IO对象的已打开的连接。A nexus for I/O operations. A channel represents an open connection to an entity such as a hardware device, a file, a network socket, or a pro
2014-12-27 16:51:10 636
原创 IO二进制 相关类
java.util.Properties它代表一个持久的属性集合。这些属性可以被保存在或者从一个stream中加载。key与value都是Sring。The Properties class represents a persistent set of properties. The Properties can be saved to a stream or loaded from a
2014-12-25 19:50:26 935
原创 数据库 存储过程
存储过程,Stored Procedure,是在大型数据库系统中,一组为了完成特定功能的SQL语句集,经编译后存储在数据库中,用户通过指定存储过程的名字并给出参数(如果该存储过程带有参数)来执行它。
2014-12-25 19:47:13 867
原创 java.util.Arrays 静态方法
Arrays类拥有一些静态方法为集合类提供算法。arraycopy() 浅复制fill()填充为指定的元素sort() 排序
2014-12-22 09:52:30 696
原创 线程同步 wait()、notify()
//: concurrency/waxomatic/WaxOMatic.java// Basic task cooperation.import java.util.concurrent.*;class Car { private boolean waxOn = false; //true表示打完蜡该抛光了 public synchronized void waxed
2014-12-17 19:44:30 994
原创 synchornized
我们期望generator.next()每次都产生的是偶数,这在单线程下没任何问题。但多线程下就会有产生奇数的可能。import java.util.concurrent.*;public class EvenGenerator { public boolean isCanceled = false; private volatile int currentEvenVa
2014-12-17 13:39:12 1014
原创 TCP套接字编程 java原生
import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.InputStream;import java.io.OutputStream;import java.net.InetAddress;import java.net.Socket;import org.w3c.do
2014-12-16 17:42:27 1206
原创 java xml Serialize DeSerialize
javax.xml.parsers.* 太难用啦import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStream;import java.io.Stri
2014-12-13 18:06:33 1438
原创 c# Serialize DeSerializer
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Serialization;using System.Threading;using System.IO;namespace Serialize{ [Ser
2014-12-12 09:03:34 1963
原创 java.容器类(list,queue,map,set)
Iterablepublic interface Iterable { Iterator iterator();}实现该接口的方法都可以被遍历。Collectionpublic interface Collection extends IterableSet和List 都继承了Conllection,Map没有。Collection接口的方法:
2014-12-10 16:15:39 1230
原创 Set 集合
集合。这是一个接口,可类比c++中的set。Set是一个不包含重复元素的 collection。更确切地讲,set 不包含满足 e1.equals(e2) 的元素对 e1 和 e2,并且最多包含一个 null 元素。正如其名称所暗示的,此接口模仿了数学上的 set 抽象。
2014-12-01 23:02:21 795
原创 java的泛型,擦除与泛型方法
泛型的自动推断等号右边的尖括号内的内容可以省略。如下句:Map<Integer,Double> m=new HashMap<>();//等效于Map<Integer,Double> m=new HashMap<Integer,Double>();需要新版 jdk 支持。擦除java的泛型是通过擦除来实现的。这意味着当你在使用泛型时,任何具体的类型信息...
2014-12-01 22:39:55 817
原创 mysql server 的ubuntu安装运维
更新于 2022.11, 适用于 mysql-server 8.0.31.网上很多旧版本的资料, 直接运行其语句会报错, 所以得查 主版本号为8的资料.
2014-12-01 21:59:39 1225 1
转载 pinyin4j
pinyin4j,一个提供拼音与汉字之间映射的开源项目。项目官网: http://pinyin4j.sourceforge.net/他人博客:http://blog.csdn.net/pathuang68/article/details/6692882
2014-12-01 09:48:05 684
win7防音量过大自干预程序_ vs2010完整解决方案.zip
2013-09-21
DirectSound开发手册
2013-02-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人