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

Java正则表达式

package com.sy.grasp;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegularExpression {
 /**
  * @param args
  * @throws IOException
  */
 public static void main(String[] args) throws IOException {
  /*String [] fakeFileData ={
    "justin\t64/5/26\t09323432434\t4546465",
    "momor\t68/7/23\t43543653\t34535435"
  };
  
  for(String data : fakeFileData){
   String[] tokens=data.split("\t");
   for(String token:tokens){
    System.out.print(token+"\t|");
   }
   System.out.println();
  }
 * 显示结果:
 * justin |64/5/26 |09323432434 |4546465 |
   momor |68/7/23 |43543653     |34535435 |
 * */
  /*String text="abcdebcadxbc";
  String[] tokens=text.split(".bc");
  for(String token:tokens){
   System.out.print(token+" ");
  }
  
  System.out.println();
  
  tokens=text.split("..cd");
  for(String token:tokens){
   System.out.print(token+" ");
  }
  
  System.out.println();
  
  
   * 返回结果是:
   *  d ad
            ebcadxbc
            解释:使用.bc来作比对,由于符合的子字符串有abc ebc xbc 3个,所以split()方法会使用这三个字符串来做字符串分离
            ,返回的就是不符合表达式.bc的d和ad了,同理..cd
          
   * */
  
  /*BufferedReader reader=new Bu


相关文档:

smtp of java mail

send mail use smtp .u can send text or html, send to many peoples if u have a email user and pwd and the smtp of the email which u use.
package org.lc.smtp;
import java.io.IOException;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.mail.Message;
import javax.mai ......

java打开本地文件

 try {
   Runtime.getRuntime().exec("C:\\xxx.exe");
  } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  } ......

flex通过blazeds与java实现增删改查

用的是MySQL数据库。
1,建一个userdb库,再建userinfo表,字段:id(int),username(varchar),password(varchar)。
create database userdb;
use userdb;
create table userinfo(
id int(10) not null auto_increment,
username varchar(20),
password varchar(20),
primary key(id));
2,DBConnection.jav ......

5.5笔记 java基础增强

今天是来传智播客的第一天,幸亏之前看过thinking in java 感觉理解不是很吃力,但是感觉挺累的
1。外挂插件的步骤:
1,在eclipse的目录下建立links目录。
2,在links目录下,建立一个文件,内容为插件eclipse目录的父目录;
 path=插件eclipse目录的父目录  path=F:\\Eclipse\\NLpack1-eclipse-SDK-3.2.1-w ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号