JavaÎļþ²Ù×÷ʵÀý
/*
³ÌÐò¹¦ÄÜ£º½«ecoli(1).txt·Ö¸î£¬ÆäÖзָîµÄ·Ö¸î·ûÊÇ>
·Ö¸îµÄÎļþÃûÊÇ>gi|????|,"???"±íʾһ¶ÎÊý×Ö£¬ÓÃÊý×Ö×ö×ÓÎļþÃû
ÎļþÒÔ×Ö·û"!"½áβ
³ÌÐòÔ±:xianglinyan
*/
import java.io.*;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.*;
public class Class1
{
public Class1()
{
}
public static void main(String[] args)
{
String f_name="";
try{
BufferedReader in= new BufferedReader(new FileReader("E:\\ecoli(1).txt"));//ÎļþÊäÈëÁ÷Ϊ
String cc=in.readLine();
char ch=cc.charAt(0);
char eh=cc.charAt(cc.length()-1);
while(eh!='!')
{
if(ch=='>')
{
f_name=cc.substring(4,11);
}
File f_o=new File("E:\\data\\"+f_name);
FileWriter fw=new FileWriter(f_o);
PrintWriter outer=new PrintWriter(new BufferedWriter(fw));
do{
cc=in.readLine();//ÿ´Î¶ÁÈ¡Ò»ÐÐ
ch=cc.charAt(0);//È¡ÕâÐеÄÍ·×Ö·û
eh=cc.charAt(cc.length()-1);//È¡ÕâÒ»ÐеÄβ×Ö·û
if(eh=='!')break;//Èç¹ûµ½ÁËÎļþ½á⣬Ìø³öÑ»·
outer.println(cc);
}while(ch!='>');
outer.close();
}
in.close();//×¢Ò⣬һ¶¨ÒªÔÚÕýÈ·µÄʱºò¹Ø±ÕÊäÈëÊä³öÁ÷
}
catch(FileNotFoundException fnfe)
{
System.err.println(fnfe);
}
catch(IOException ioe)
{
System.err.println(ioe);
}
}
}
/*
³ÌÐò¹¦ÄÜ£º½«Ö¸¶¨Ä¿Â¼ÏµÄÎļþÃûºÍÎļþ³¤¶È£¨ÒÔKΪµ¥Î»£¬²¢´æ´¢Îª¸¡µãÊý£©´æ´¢µ½Ö¸¶¨µÄÎ
Ïà¹ØÎĵµ£º
19.2 ·ÃÎÊÔ¶³ÌJava¶ÔÏóΪÁËʵÏÖ¶ÔÔ¶³ÌJava¶ÔÏóµÄ·ÃÎÊ£¬ÔÚ·þÎñÆ÷¶Ë£¬ÐèÒªÍê³ÉÈçϼ¸¸ö²½Ö裺 1. ´´½¨LiveCycle Data Service WebÓ¦Óã» 2. ʵÏÖPOJO JavaÀࣻ 3. ÔÚLiveCycle Data Service WebÓ¦ÓÃÖв¿ÊðPOJO JavaÀࣻ 4. ÅäÖÃremote-config.xmlÎļþ£¬ÉùÃ÷desination½Úµã£¬Ö¸ÏòPOJO JavaÀà¡£ ÔÚ¿Í»§¶ËÓ¦ÓÃÖУ¬ÐèҪʵÏÖ£º 1. ......
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 {
......
°²×°»·¾³£º
1.ÉÏ´«jdk-6u17-linux-i586.binºÍapache-tomcat-6.0.20.tar.gzµ½/usr
2.°²×°JDK
¡¡¡¡$chmod a+x jdk-6u17-linux-i586.bin
¡¡¡¡$ ./jdk-6u17-linux-i586.bin
¡¡¡¡$ vi /etc/profile
¡¡¡¡#Ìí¼ÓÈçÏÂ
¡¡¡¡export JAVA_HOME=/usr/jdk1.6.0_17
¡¡¡¡export PATH=$JAVA_HOME/bin:$PATH
¡¡¡¡$echo $JAVA_H ......
//ÊäÈëijÄêijÔÂijÌ죬Êä³öÕâÒ»ÌìÊÇÕâÒ»ÄêµÄµÚ¼¸Ìì
public class DaySum {
public static void main(String[] args)
{
date da=new date();
System.out.println(da.count(2008,12,31));
}
}
class date
{
int count(int year,int month,int day) ......
dzÎöJava web³ÌÐòÖ®¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½»»¥ÔÀí
½üÀ´Ò»Ö±ÔÚ˼¿¼Ò»¸öÒÉÎÊ£¬ÎªÊ²Ã´ÔÚÓÃstruts¿ò¼Ü¿ª·¢µÄʱºòFormBean¶¼ÐëÒªÐòÁл¯£¬¼´ÊµÏÖJava.io.Serializable½Ó¿Ú£¬±¾×ÅÇÚѧºÃÎʵľ«ÉñÎÒGoogleÁË϶ÔÏóÐòÁл¯·½ÃæµÄÎÄÕ£¬ËäÈ»´óÌåÃ÷°×ÁËÈçºÎ×ö£¬µ«ÊÇ»¹ÊÇûÓиãÇå³þΪʲôҪÕâÑù×ö£»½áβÎÒÏë´¦ÀíÒ»¸öÒÉÎÊÒªÕÒÒÉÎʵĸùÔ´ºÍ±¾ÖÊ ......