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. ......
°²×°»·¾³£º
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 ......
Java Annotation×¢ÊÍÓï·¨£¨Ò»£©
¹Ø¼ü×Ö: java annotation×¢ÊÍ
JAVA´ÓJ2SE5¿ªÊ¼ÌṩÃûΪannotation£¨×¢ÊÍ£¬±ê×¢£©µÄ¹¦ÄÜ¡£JavaµÄannotation£¬¿ÉÒÔ¸½¼ÓÔÚpackage, class, method, fieldµÈÉÏÃ棬Ï൱ÓÚ¸øËüÃÇÌí¼ÓÁ˶îÍâµÄ¸¨ÖúÐÅÏ¢¡£¸½¼ÓÔÚpackage, class, method, fieldµÈÉϵÄAnnotation£¬Èç¹ûûÓÐÍⲿ½âÎö¹¤¾ßµÈ¶ÔÆä¼ÓÒÔ½â ......
1£®ÈçºÎѧϰ³ÌÐòÉè¼Æ£¿
JAVAÊÇÒ»ÖÖƽ̨£¬Ò²ÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ£¬ÈçºÎѧºÃ³ÌÐòÉè¼Æ²»½ö½öÊÊÓÃÓÚJAVA£¬¶ÔC++µÈÆäËû³ÌÐòÉè¼ÆÓïÑÔÒ²Ò»Ñù¹ÜÓá£Óбà³Ì¸ßÊÖÈÏΪ£¬ JAVAÒ²ºÃCÒ²ºÃûʲô·Ö±ð£¬ÄÃÀ´¾ÍÓá£ÎªÊ²Ã´ËûÃÇÄÜ´ïµ½Èç´Ë¾³½ç£¿ÎÒÏëÊÇÒòΪ±à³ÌÓïÑÔÖ®¼äÓй²Í¨Ö®´¦£¬Áì»áÁ˱à³ÌµÄ¾«Ë裬×ÔÈ»Äܹ»×öµ½Ò»Í¨°Ùͨ¡£ÈçºÎѧϰ³ÌÐòÉè¼ÆÀ ......
//ÊäÈë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) ......