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

Java ¼òÒ×¼ÆËãÆ÷³ÌÐò

    ×î½ü¿ªÊ¼Ñ§Ï°java£¬²Î¿¼½Ì¿ÆÊéдÁËÒ»¸ö¼òµ¥µÄ¼ÆËãÆ÷³ÌÐò£¬ÌùÉÏÀ´£¬ÒÔ±ãÓÐÓõÄʱºò¿ÉÒԲο¼¡£
    ºÇºÇ£¬¹þ¹þ£¡£¡£¡
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.text.DecimalFormat;
import javax.swing.*;
public class Calculator extends JFrame implements ActionListener, ItemListener {

private JButton buttons[];
private JButton btClear, btTransfer;
private JTextField resultArea;
private JPanel resultPanel, buttonsPanel, transferPanel;
int cmbIndex = 1;
private String string[] = { "7", "8", "9", "/", "6", "5", "4", "*", "3",
"2", "1", "-", "0", ".", "=", "+" };
private String s = "", shu1 = "", shu2 = "", shu3 = "";
private static int fo = 0;
JComboBox cmbox;
private boolean ff = true;
public Calculator() {
super("½øÖƼÆËãÆ÷");
Container container = getContentPane();
container.setLayout(new FlowLayout());

resultPanel = new JPanel();
resultArea = new JTextField(13);
resultPanel.add(resultArea);
btClear = new JButton("C");
resultPanel.add(btClear);

transferPanel = new JPanel();
cmbox = new JComboBox();
cmbox.addItem("10½øÖÆת»»Îª2½øÖÆ");
cmbox.addItem("10½øÖÆת»»Îª8½øÖÆ");
cmbox.addItem("10½øÖÆת»»Îª16½øÖÆ");
cmbox.addItem("2½øÖÆת»»Îª8½øÖÆ");
cmbox.addItem("2½øÖÆת»»Îª10½øÖÆ");
cmbox.addItem("2½øÖÆת»»Îª16½øÖÆ");
cmbox.addItem("8½øÖÆת»»Îª2½øÖÆ");
cmbox.addItem("8½øÖÆת»»Îª10½øÖÆ");
cmbox.addItem("8½øÖÆת»»Îª16½øÖÆ");
cmbox.addItem("16½øÖÆת»»Îª2½øÖÆ");
cmbox.addItem("16½øÖÆת»»Îª8½øÖÆ");
cmbox.addItem("16½øÖÆת»»Îª10½øÖÆ");
transferPanel.add(cmbox);
btTransfer = new JButton("ת");
transferPanel.add(btTransfer);

buttonsPanel = new JPanel();
buttonsPanel.setLayout(new GridLayout(4, 4, 10, 10));
butto


Ïà¹ØÎĵµ£º

javaÈçºÎ»ñÈ¡ÕæʵµÄIP

Èç¹û·þÎñÆ÷Èç¹ûûÓвÉÓ÷´Ïò´úÀí£¬¶øÇÒ¿Í»§¶ËûÓÐÓÃÕýÏò´úÀíµÄ»°£¬
                   ÄÇô¿ÉÒÔ»ñÈ¡¿Í»§¶ËµÄÕæʵIPµØÖ·request.getRemoteAddr()
Èç¹û·þÎñÆ÷Èç¹ûûÓвÉÓ÷´Ïò´úÀí£¬¶øÇÒ¿Í»§¶ËÓÐÓÃÕýÏò´úÀíµÄ»°£¬
 &nbs ......

֪ʶС¼Ç(java)

1)¿Í»§¶ËÊÇ.netµ÷Ó÷þÎñ¶ËÓÃjavaдÁËÒ»¸öwebservice
ÓÃC#.NETµ÷ÓÃJava¿ª·¢µÄWebServiceʱ£¬ÏÈÔÚ¿Í»§¶Ë·â×°µÄ´øÓÐintÊôÐԵĶÔÏ󣬵±½«¸Ã¶ÔÏó´«µ½·þÎñÆ÷¶Ëʱ£¬·þÎñÆ÷¶Ë¿ÉÒԵõ½stringÀàÐ͵ÄÊôÐÔÖµ£¬È´²»Äܵõ½intÀàÐÍ¡¢doubleºÍDateTimeÀàÐ͵ÄÖµ£¨ÔÚ·þÎñ¶ËµÃµ½µÄ¾ùΪnull£©
½â¾ö°ì·¨£º
VS2005·â×°WebServiceÒýÓÃʱ£¬Èç¹û ......

JavaÊäÈëÊý¾ÝÁ÷Ïê½â

JavaÊäÈëÊý¾ÝÁ÷
ÔÚJavaÖУ¬ÎÒÃÇ°ÑÄܹ»¶ÁÈ¡Ò»¸ö×Ö½ÚÐòÁеĶÔÏó³Æ×÷Ò»¸öJavaÊäÈëÊý¾ÝÁ÷;¶øÎÒÃǰѹ»Ð´Ò»¸ö×Ö½ÚÐòÁгÆ×÷Ò»¸öÊä³öÁ÷¡£ËüÃÇ·Ö±ðÓɳéÏóÀà InputStreamºÍOutputStreamÀà±íʾ¡£ÒòΪÃæÏò×Ö½ÚµÄÁ÷²»·½±ãÓÃÀ´´¦Àí´æ´¢ÎªUnicode£¨Ã¿¸ö×Ö·ûʹÓÃÁ½¸ö×Ö½Ú)µÄÐÅÏ¢¡£ËùÒÔJava ÒýÈëÁËÓÃÀ´´¦ÀíUnicode×Ö·ûµÄÀà²ã´Î£¬ÕâЩÀàÅÉÉú× ......

Java ½Ó¿ÚºÍ³éÏóÀàÇø±ð


Ô­ÎÄ £º http://blog.csdn.net/sunboard/archive/2009/01/18/3831823.aspx
Ò»
¸öÈí¼þÉè¼ÆµÄºÃ»µ£¬ÎÒÏëºÜ´ó³Ì¶ÈÉÏÈ¡¾öÓÚËüµÄÕûÌå¼Ü¹¹£¬¶øÕâ¸öÕûÌå¼Ü¹¹Æäʵ¾ÍÊÇÄã¶ÔÕû¸öºê¹ÛÉÌÒµÒµÎñµÄ³éÏó¿ò¼Ü£¬µ±´ú±íÒµÎñÂß¼­µÄ¸ß²ã³éÏó²ã½á¹¹
ºÏÀíʱ£¬Äãµ×²ãµÄ¾ßÌåʵÏÖÐèÒª¿¼Âǵľͽö½öÊÇһЩËã·¨ºÍһЩ¾ßÌåµÄÒµÎñʵÏÖÁË¡£µ±ÄãÐèÒªÔÙ¿ ......

¸ã¶®javaÖеÄsynchronized¹Ø¼ü×Ö

ʵ¼ÊÉÏ£¬ÎÒ¹ØÓÚjavaµÄ»ù´¡ÖªÊ¶µÄ90%ÒÔÉ϶¼À´×ÔThinking in Java¡£¶ÔÓÚÆäÖеÄsynchronized¹Ø¼ü×Ö£¬µ±Ê±¾ÍÊÇä¯ÀÀһϣ¬´ó¸ÅÖªµÀÒâ˼£¬Ò²Ã»ÓÐϸ¿´¡£ºóÀ´Ò»Ö±Ã»ÓÐÓùýÕâ¸ö¹Ø¼ü×Ö¡£×òÌì¿´Thinking in Patterns with JavaÖеÄObserverģʽ£¬¿´ÁËÆäÖеÄObservableÀàµÄÔ´Â룬·¢ÏÖÀïÃ漸ºõËùÓеķ½·¨¶¼ÓÃÁËsynchronized¹Ø¼ü×Ö£¨²»ÊÇÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ