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

ÓÃJavaдµÄ¼ÆËãÆ÷

                            ÓÃJavaдµÄ¼ÆËãÆ÷
package com.wenbo.myprogrem.day15;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Caculator implements ActionListener{
   String result="0";
   String oper="+";//ÔËËã·û
   Double res;
   StringBuilder sb=new StringBuilder();
    JTextField jtf = new JTextField(10);
    private boolean append=false;
 public  Caculator(){
  JFrame jf = new JFrame("¼òÒ×¼ÆËãÆ÷");
  JPanel jp = new JPanel();
  jp.setLayout(new GridLayout(5,4));
  String[] lab = {"Backs","CE","E","+","7","8","9",
   "-","4","5","6","*","1","2","3",
   "/","0","+/-",".","="};
     for (int i=0; i <20; i++) {
   JButton jb = new JButton(lab[i]);
   jb.addActionListener(this);//¸øÿ¸ö°´Å¥×¢²á¼àÌýÆ÷
   jp.add(jb);
  }
     jf.setResizable(false);
     jf.add(jp);
 
     jtf.addActionListener(this);
     jf.add(jtf,BorderLayout.NORTH);
     jf.setSize(320,240);//ÏñËØ
     jf.setLocation(300,200);//ÉèÖóöÏÖλÖÃ
     jf.setVisible(true);
     jf.setDefaultCloseOperation(//ÉèÖÃX
        JFrame.EXIT_ON_CLOSE);
 }
 public void actionPerformed(ActionEvent e) {
  String comm=e.getActionCommand();//»ñµÃ°´Å¥ÉϵÄÎÄ×Ö
  System.out.println(comm);
  if("0123456789".indexOf(comm)!=-1){
    if(append){//×·¼Ó£¬¸Õ¿ªÊ¼ÊÇfalse°´ÍêÊý×Ö¼


Ïà¹ØÎĵµ£º

ʹÓÃJavaµ÷ÓÃOracleÊý¾Ý¿âµÄ´æ´¢¹ý³ÌʵÀý

Ò»£ºÎÞ·µ»ØÖµµÄ´æ´¢¹ý³Ì
1¡¢½¨Á¢´æ´¢¹ý³Ì
CREATE OR REPLACE PROCEDURE TESTA(PARA1 IN VARCHAR2,PARA2 IN VARCHAR2) AS
BEGIN
INSERT INTO T_TEST (I_ID,I_NAME) VALUES (PARA1, PARA2);
END TESTA;
2¡¢ÏàÓ¦µÄJAVA³ÌÐò
import java.sql.*;
import java.io.OutputStream;
import java.io.Writer;
import java.sq ......

¡¾javaËã·¨¡¿ÂòÆ»¹û

ÌâÄ¿£ºÓÐ600¸öÆ»¹û£¬ÒªÇó·Ö×°ÔÚ10¸öºÐ×ÓÖС£¶ÔÓڹ˿ÍÒªÇóµÄÈÎÒâÆ»¹ûÊý¶¼¿ÉÒÔͨ¹ý´Ë10¸öºÐ×Ó½øÐÐ×éºÏµÃµ½¡£
·ÖÎö£º1¡¢Ê×ÏÈÒªÉè¼Æ10¸öºÐ×ÓËù×°Æ»¹ûµÄÊýÄ¿¡£Óɶþ½øÖÆÓëÊ®½øÖƵÄת»»¿ÉÖª£¬2µÄ±¶ÊýÏà¼Ó¿ÉÒԵĵ½Ò»ÇÐÊ®½øÖÆÊý¡£ËùÒÔÈç¹ûÏëʹÓÃÓÐÏÞµÄÊý×Ö×éºÏµÃµ½Ò»¶¨·¶Î§ÄÚµÄËùÓÐÊý×Ö±ØÊÇÒÔ2µÄ±¶Êý½øÐÐÉè¼ÆµÄ¡£ËùÒÔ£¬¿É֪ʮ¸öºÐ×Ó ......

javaʼþ´¦Àí»úÖÆ

תÌûhttp://zmfkplj.javaeye.com/blog/629678
ÔÚ³õѧjava swingʱ±ãÓõÄÊÇJbuilder£¬±ã½ÝµÄ¹¤¾ßϲúÉúµÄ½á¹ûÓÐÁ½¸ö£¬Ò»ºÃÒ»»µ¡£ºÃµÄ·½ÃæÊÇ̫ˬÁË£¬½ö½öÊó±êµã»÷£¬Êó±êÒƶ¯£¬±ã»á²ú³ö²»ÓÃÀí½âµÄ´úÂ룬¶øÕâЩ´úÂëÕÕÑùÄÜÔËÐУ¬Íê³ÉËùÐèÒªµÄ¹¦ÄÜ£»»µµÄ·½ÃæÊÇÌ«ÔãÁË£¬µ±À뿪Jbuilder¹¤¾ß¿ª·¢swingʱ£¬ËùÓеķ½ÃæͨͨûÓУ¬ËùÓе ......

javaÓÃCommons fileupload ÎļþµÄÉÏ´«


»ùÓÚ±íµ¥µÄÎļþÉÏ´«
Èç¹ûÔÚ±íµ¥ÖÐʹÓÃ±íµ¥ÔªËØ <input type=“file”
/>£¬ä¯ÀÀÆ÷ÔÚ½âÎö±íµ¥Ê±£¬»á×Ô¶¯Éú³ÉÒ»¸öÊäÈë¿òºÍÒ»¸ö°´Å¥£¬ÊäÈë¿ò¿É¹©Óû§Ìîд±¾µØÎļþµÄÎļþÃûºÍ·¾¶Ãû£¬°´Å¥¿ÉÒÔÈÃä¯ÀÀÆ÷´ò¿ªÒ»¸öÎļþÑ¡Ôñ¿ò¹©
Óû§Ñ¡ÔñÎļþ£º
µ±±íµ¥ÐèÒªÉÏ´«Îļþʱ£¬ÐèÖ¸¶¨±íµ¥ enctype µÄֵΪ multipart/fo ......

javaÐÂÎÅץȡ³ÌÐò´úÂë

/*ÎÒ×öÁ˸ö³ÌÐò°ÑÐÂÀËÉϵÄÌìÆøÐÂÎÅ×¥¹ýÀ´´æµ½±¾µØ£¬¿¼ÂÇ·ÃÎÊËÙ¶ÈÎÊÌ⣬ÐÂÎÅÖеÄͼƬҲҪ±£´æµ½±¾µØ¡£
³ÌÐòÈçÏÂ
*/
package vnet.com.weather1;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ