Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java³õѧÕߣºÍ¼Êé¹ÜÀíС¹¤¾ß´úÂë

1.Welcome.java
import java.util.Date;
import java.util.Scanner;

public class Welcome {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args){
// TODO Auto-generated method stub

System.out.println("Welcome to visit software of book management!\n");
System.out.println("Now is "+new Date()+"\n");
Select s=new Select();
s.SelectService();
}
}

2.Select.java
import java.util.Scanner;
public class Select {
ReturnBook rb=new ReturnBook();
InquireBook ib=new InquireBook();
LendBook lb=new LendBook();
ShowAllBooks sab=new ShowAllBooks();
AddBook ab=new AddBook();
ShowLentBooks slb=new ShowLentBooks();
public void SelectService()
{
System.out.println("1.Show all the books\n2.Inquire book\n3.Lend book\n4.Return book\n5.Add book\n" +
"6.Show lent books");
System.out.print("Please select one from services listed above:");
Scanner s=new Scanner(System.in);
int selectNumber=s.nextInt();

if(selectNumber==1)
{
sab.ShowAll();
}
else if(selectNumber==2)
{
ib.Inquire();
}
else if(selectNumber==3)
{
lb.Lend();
}
else if(selectNumber==4)
{
rb.returnBook();
}
else if(selectNumber==5)
{
ab.add();
}
else if(selectNumber==6)
{
slb.ShowLent();
}
else
{
System.out.println("Input error,Please select one from services listed below again.");
Select ss=new Select();
ss.SelectService();
}
}
}

3.AddBook.java
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.


Ïà¹ØÎĵµ£º

Javaģʽ

¡¶JavaÓëģʽ¡·Ê×ÏȲûÊöÁË´úÂëµÄÉè¼ÆÔ­Ôò£¬ÓÖÃèÊöÁËÔõÑùÀ´´´½¨Ò»¸öÀà»ò¶ÔÏ󣬽ô½ÓןæËß´ó¼ÒÔõÑùÀ´×éÖ¯ÕâЩÀàºÍ¶ÔÏóÀ´ÊµÏÖ¹¦ÄÜ¡£ËüÊÇÉè¼Æģʽ£¬¶ø²»ÊǼܹ¹Ä£Ê½¡£
OOÃæÏò¶ÔÏó±à³Ì£¬ÊµÖÊÉÏÊÇÃæÏò³éÏó±à³Ì£¬¼´ÃæÏò½Ó¿Ú±à³Ì¡£ËùνµÄÃæÏò½Ó¿Ú±à³Ì£¬Ö¸ÀàÖ®¼ä¶¼ÒªÊ¹ÓýӿÚÀ´Í¨ÐÅ¡£ÀàÀ´·â×°¶ÔÏóµÄÐÐΪ£¬½Ó¿ÚÀ´·â×°ÀàÖ®¼äµÄͨÐÅ·½·¨ ......

javaÖлá´æÔÚÄÚ´æй©Âð

»á¡£ ËùνÄÚ´æй¶¾ÍÊÇÖ¸Ò»¸ö²»ÔÙ±»³ÌÐòʹÓõĶÔÏó»ò±äÁ¿Ò»Ö±±»Õ¼¾ÝÔÚÄÚ´æÖС£
   javaµ¼ÖÂÄÚ´æ鶵ÄÔ­ÒòºÜÃ÷È·£º³¤ÉúÃüÖÜÆڵĶÔÏó³ÖÓжÌÉúÃüÖÜÆÚ¶ÔÏóµÄÒýÓþͺܿÉÄÜ·¢ÉúÄÚ´æй¶£¬¾¡¹Ü¶ÌÉúÃüÖÜÆÚ¶ÔÏóÒѾ­²»ÔÙÐèÒª£¬µ«ÊÇÒòΪ³¤ÉúÃüÖÜÆÚ¶ÔÏó³ÖÓÐËüµÄÒýÓöøµ¼Ö²»Äܱ»»ØÊÕ£¬Õâ¾ÍÊÇjavaÖÐÄÚ´æй¶µÄ·¢Éú³¡¾°¡£
&n ......

ÀûÓÃJAVA´ò°üÉú³ÉzipÎļþµÄÀà

Ö÷Òª´úÂë²Î¿¼ÁËbeansoftµÄZipUtil,Ìí¼ÓÁËÒ»¸ö·½·¨£¬
¿ÉÒ԰Ѳ»Í¬Ä¿Â¼ÎļþÌí¼Óµ½zipÖÐ,²¢×öÁËһЩ¸Ä½ø£¬Ê¹ÓÃÁËapacheµÄzipÀ࣬(ԭΪjdkµÄzipÀà)£¬Ê¹Ö§³ÖÖÐÎÄÎļþÃû¡£
apacheµÄzipÀà¿ÉÒÔ´ÓantÖгéÈ¡¡£apacheºÃÏñûÓÐÌṩµ¥¶ÀÏÂÔØ¡£
package com.order;
import java.io.*;
import java.util.List;
import org.apache.tool ......

javaµ÷ÓÃwebserviceµÄ¸÷ÖÖ·½·¨×ܽá

Ò»¡¢ÀûÓÃjdk web·þÎñapiʵÏÖ£¬ÕâÀïʹÓûùÓÚ SOAP message µÄ Web ·þÎñ
¡¡¡¡1.Ê×ÏȽ¨Á¢Ò»¸öWeb services EndPoint£º
¡¡¡¡Java´úÂë
¡¡¡¡package Hello;
¡¡¡¡import javax.jws.WebService;
¡¡¡¡import javax.jws.WebMethod;
¡¡¡¡import javax.xml.ws.Endpoint;
¡¡¡¡@WebService
¡¡¡¡public class Hello {
¡¡¡¡@WebMet ......

JAVA ¶à¶Ô¶àÀý×Ó

    ʹÓÃÀ༯²»½ö¿ÉÒÔ±íʾ³öÒ»¶ÔÒ»µÄ¹Øϵ£¬Ò²¿ÉÒÔ±íʾ³ö¶à¶Ô¶àµÄ¹Øϵ¡£ÀýÈ磬һ¸öѧÉú¿ÉÒÔÑ¡¶àÃſγ̣¬Ò»Ãſγ̿ÉÒÔÓжà¸öѧÉú²Î¼Ó£¬ÄÇôÕâ¾ÍÊÇÒ»¸öµäÐ͵Ķà¶Ô¶à¹Øϵ¡£
ÒªÍê³É±¾³ÌÐò£¬Ê×ÏÈÓ¦¸Ã¶¨ÒåÁ½¸öÀࣺѧÉúÐÅÏ¢ÀàStudent¡¢¿Î³ÌÐÅÏ¢ÀàCourse¡£ÔÚÒ»¸öѧÉúÀàÖдæÔÚÒ»¸ö¼¯ºÏ£¬±£´æÈ«²¿µÄ¿Î³Ì£»¶øÔڿγÌÀàÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ