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

ÎҵĵÚÒ»¸öJavaС³ÌÐò

/*×÷ÓãºÓû§ÊäÈë×Ô¼ºµÄÃû×Ö£¬ÏÔʾһ¾äÎʺòÓï¡£
   ʱ¼ä£º2010Äê4ÔÂ20ÈÕ¡£
   ×÷Õߣºenfang.
*/
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class KeyboardReader¡¡//×÷Ó㺴ӼüÅ̶ÁÈëÊý¾Ý
{
¡¡¡¡private BufferedReader reader;
 
¡¡¡¡ public KeyboardReader()
 ¡¡¡¡{
 ¡¡¡¡ ¡¡¡¡reader = new BufferedReader(new InputStreamReader(System.in));
 ¡¡¡¡}
 
¡¡¡¡ public String getKeyboardInput()
 ¡¡¡¡{
  ¡¡¡¡¡¡¡¡return readKeyboard();
 ¡¡¡¡}
  
 ¡¡¡¡public int getKeyboardInteger()  //´Ó¼üÅ̶ÁÈëÒ»¸öintÐ͵ÄÊý¡£
 ¡¡¡¡{
 ¡¡¡¡¡¡¡¡ return Integer.parseInt(readKeyboard()); 
 ¡¡¡¡}
 
 ¡¡¡¡public double getKeyboardDouble()  //´Ó¼üÅ̶ÁÈëÒ»¸ödoubleÐ͵ÄÊý
 ¡¡¡¡{
 ¡¡¡¡¡¡¡¡ return Double.parseDouble(readKeyboard());
 ¡¡¡¡}
 
 ¡¡¡¡public void prompt(String s)   //ÏÔʾ¶ÁÈëµÄ×Ö·û´® £¬Ö÷ÒªÆðÌáʾ×÷Óá£
¡¡¡¡ {
  ¡¡¡¡¡¡¡¡System.out.print(s);
 ¡¡¡¡}
 
 ¡¡¡¡public void display(String s)  //ÏÔʾ¶ÁÈëµÄ×Ö·û´®£¬Óëprompt()²»Í¬£¬¸Ã·½·¨Êä³ö½á¹û¡£
 ¡¡¡¡{
  ¡¡¡¡¡¡¡¡System.out.print(s);
 ¡¡¡¡}
 
 ¡¡¡¡private String readKeyboard() // Òì³£µÄÅжϣ¬¼ì²é´Ó¼üÅÌÊäÈëµÄ×Ö·û´®ÊÇ·ñÓÐÎó¡£
 ¡¡¡¡{
  ¡¡¡¡¡¡¡¡String line = "";
 ¡¡¡¡¡¡¡¡ try
  ¡¡¡¡¡¡¡¡{
  ¡¡¡¡¡¡¡¡¡¡¡¡ line = reader.readLine();
  ¡¡¡¡¡¡¡¡}catch(IOException e)
  ¡¡¡¡¡¡¡¡¡¡{
   ¡¡¡¡¡¡¡¡¡¡¡¡¡¡e.printStackTrace();
  ¡¡¡¡¡¡¡¡¡¡}
  ¡¡¡¡¡¡¡¡return line;
 ¡¡¡¡}
¡¡}
class GreeterApp    // ¸ÃÀà½ÓÊÕÊäÈëµÄÃû×Ö£¬²¢ÏÔʾһ¾äÎʺòÓï¡£
{
 ¡¡¡¡private KeyboardReader reader;
 
 ¡¡¡¡public GreeterApp()
 ¡¡¡¡{
  ¡¡¡¡¡¡¡¡reader = new KeyboardReader();
 ¡¡¡¡}
 
 ¡¡¡¡pu


Ïà¹ØÎĵµ£º

Java°üµÄ´´½¨ºÍʹÓÃ

°üÊÇJavaÓïÑÔÌṩµÄÒ»ÖÖÇø±ðÀàÃû×ÖÃüÃû¿Õ¼äµÄ»úÖÆ£¬ËüÊÇÀàµÄÒ»ÖÖÎļþ×éÖ¯ºÍ¹ÜÀí·½Ê½¡¢ÊÇÒ»×鹦ÄÜÏàËÆ»òÏà¹ØµÄÀà»ò½Ó¿ÚµÄ¼¯ºÏ¡£Java packageÌṩÁË·ÃÎÊȨÏÞºÍÃüÃûµÄ¹ÜÀí»úÖÆ£¬ËüÊÇJavaÖкܻù´¡È´Óַdz£ÖØÒªµÄÒ»¸ö¸ÅÄî¡£
 
Ò»¡¢°üµÄ×÷ÓÃ
1 °Ñ¹¦ÄÜÏàËÆ»òÏà¹ØµÄÀà»ò½Ó¿Ú×éÖ¯ÔÚͬһ¸ö°üÖУ¬·½±ãÀàµÄ²éÕÒºÍʹÓá£
2 Èçͬ ......

java·ÃÎÊ.net ·¢²¼µÄwebservice

ÍæÁËһ϶ÌÐÅ裺
ÓÃ.net·ÃÎʶÌÐÅ裬²¢Ð´ÁË·¢ËͶÌÐÅ¡¢¶Á¶ÌÐÅ£¨ÕâÀïµÄ¶Á¶ÌÐÅÊǶÁÈ¡SIM¿¨ÖнÓÊÕµ½µÄ¶ÌÐÅ£©¡¢Åж϶ÌÐÅèÊÇ·ñ´ò¿ª¡¢´ò¿ªµÈ·½·¨¡£²¢·¢²¼ÁËwebserviceÓÃÓÚjava¹¤³Ìµ÷Óá£
ÕâÀïÖ»ÁгöÁ˵÷ÓõĴúÂ루java£©²»×ãÖ®´¦ÇëÖ¸½Ì£¡

/**
* ³õʼ»¯call
*/
private void inItCall() {
try {
Service se ......

µ÷ÓÃGoogle API µÄJavaʵÏÖ£¨Web service£©


Web ServiceµÄ·Ï»°¾Í²»ËµÁË¡£¾Í˵ÔõôʹÓðɡ£
1.ÐèÒªjava»·¾³ µ½http:.//java.sun.com/J2SE  ¿ÉÒÔÏÂÔØ Java Development Kit
2.ÐèÒªGoogle APIµÄJarÎļþ£¬Googleapi.jar¡£¿ÉÒÔµ½http://www.google.com/apisÏÂÔØ¡£Ìî¼Ó½øCLASSPATH.
3.ÉêÇëGoogle·ÃÎÊÕʺţ¬Ä¿Ç°GoogleÖ§³ÖÃâ·ÑÉêÇëµÄ·½Ê½£¬Óû§ÐèҪʹÓÃÒ»¸öem ......

Java¡±·½·¨¡°Ñ§Ï°Ð¡½á

 ·½·¨¾ÍÊÇÒ»¶Î¿ÉÖØ¸´µ÷ÓõĴúÂë¶Ë
·½·¨µÄ¶¨ÒåÔÚJavaÖÐÓжàÖÖÐÎʽ£¬
ÏÖÔÚµÄÎÒËù˵µÄ·½·¨¾ÍÊÇÖ¸¿ÉÒÔÓÃmain·½·¨Ö±½ÓÈ¥µ÷Óõķ½·¨¡£
public class JavaDemo06
{
public static void main(String args[])
{
printTab() ;
}
// ¶¨ÒåÒ»¸ö·½·¨£¬´Ë·½·¨ÓÃÓÚ´òÓ¡Hello World
// public static±ØÐë¼ÓÉÏ£¬ÒòΪÊÇÓ ......

javaÃæÊÔÌâ

1  ×Ö·û´®±È½ÏÊÇ·ñÏàµÈÓÃʲô·½·¨£¿
2 equals£¨£©ºÍhashCode£¨£©µÄÇø±ð£¿
3 forwardºÍsenRedirectÇø±ð£¿
4 servletÉúÃüÖÜÆÚ£¿
5 ¹ýÂËÆ÷µÄ×÷ÓÃ
6 JSP°üº¬¾²Ì¬ÎļþµÄÓï·¨
7 JSP×¢ÊÍ£¨ÖÁÉÙÁ½¸öÒÔÉÏ£©
8 tableÖÐborder£¬cellpadding,tdÖÐcolspan,rowspanµÄÒâÒå
9 jsÈýÖÖµ¯³ö´°¿Ú a ¾¯¸æ  b È·ÈÏ  c ÐÅÏ¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ