易截截图软件、单文件、免安装、纯绿色、仅160KB

java cst时区转换


BODY { color: #000000; font-size: 9pt; font-family: 宋体 }
TABLE { font-size: 9pt; font-family: 宋体 }
SimpleDateFormat sdfy = new SimpleDateFormat("HH:mm"); 
        String tt =
"Tue Feb 09 10:43:00 CST 2010";
         sdf = new SimpleDateFormat( 
                "EEE MMM dd HH:mm:ss 'CST' yyyy", Locale.US); 
       
       
        try
{
   System.out.println(sdfy.format(sdf.parse(tt)));
  } catch
(ParseException e1) {
   // TODO 自动生成 catch

   e1.printStackTrace();
  }


相关文档:

Java读取注册表信息到内存中

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @description 本程序实现了读取注册表分支:HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ODBC Data Sources到内存的操作
* @author:narsh
* @time 2010-2-8
*/
public class getRegToMemery {
publ ......

java 解析MP3文件


首先需要知道的是,MP3文件的文件信息都放在文件最后的128个字节里面,这128个字节分别存储的信息如下:
char Header[3];    /* 标签头必须是"TAG"否则认为没有标签 */
char Title[30];    /* 标题 */
char Artist[30];   /* 作者&n ......

Object Ordering java 排序

Object Ordering
A List l may be sorted as follows.
Collections.sort(l);
If the List consists of String elements, it will be sorted into alphabetical order. If it consists of Date elements, it will be sorted into chronological order. How does this happen? String and Date both implement the Compara ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号