µÚÒ»¸öJava½çÃæ³ÌÐò
×öÁËÒ»¸öºÜ¼òµ¥µÄ½çÃæ³ÌÐò,Ò²ÊÇÎÒµÚÒ»¸ö½çÃæ³ÌÐò.Ö÷Òª¹¦ÄܾÍÊÇÊäÈëÁ½¸öÊý×Ö,¼ÆËãÕâÁ½¸öÊý×ֵĺÍ,ºÜ¼òµ¥µÄ¹¦ÄÜ,ÎÒÈ´»¨Á˺ܾÃ,¶ÔjavaÌ«²»ÊìϤÁË,Á¬µÃµ½textField1ÖÐÓû§ÊäÈëµÄÖµÔõô»ñµÃ,¶¼²»ÖªµÀ,ºóÀ´baidu²ÅÖªµÀ,
Óà textField1.getText()»ñµÃÊäÈëµÄÖµ;,
É趨ij¸öÖµÔòÊÇ textField3.setText();
½«Stringת»¯³ÉÕûÐÎÓà Integer.parseInt(string1);
Ïà·´ÔòÊÇ String.valueOf(c)
Ö÷Òª´úÂëÌùÏÂ,¸ø×Ô¼ºÁô¸ö¼ÍÄî.import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Com extends JFrame implements ActionListener {
/**
* @param args
*/
JButton button = new JButton("=");
JTextField textField1 = new JTextField(5);
JTextField textField2 = new JTextField(5);
JTextField textField3 = new JTextField(5);
JLabel label1 = new JLabel("ÇëÊäÈë: ");
JLabel label2 = new JLabel("+");
public static void main(String[] args) {
// TODO Auto-generated method stub
Com com = new Com();
com.init();
com.setVisible(true);
}
public void init() {
this.setSize(400, 300);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setResizable(false);
this.setTitle("¼òµ¥¼ÆËã³ÌÐò");
this.setLocation(400, 250);
JPanel jPanel = new JPanel();
jPanel.setBackground(Color.white);
jPanel.setPreferredSize(new Dimension(300, 300));
this.getContentPane().add(jPanel, BorderLayout.CENTER);
jPanel.add(label1);
jPanel.add(textField1);
jPanel.add(label2);
jPanel.add(textField2);
jPanel.add(button);
button.addActionListener(this);
jPanel.add(textField3);
}
public void actionPerformed(ActionEvent e) {
Object object = e.getSource();
if (object == button) {
String string1 = textField1.getText();
String string2 = textField2.getText();
if (string1.trim().length() == 0 || string2.trim().length() == 0) {
Ïà¹ØÎĵµ£º
¹Ø¼ü×Ö: byte String
ÎÊÌâ1£ºjavaÖÐûÓÐʵÏÖÕâÖÖ“byte a = 0xB2 --> String b = “B2””ת»»µÄ¼òµ¥ÊµÏÖÐèÒª×Ô¼ºÊµÏÖ¡£
´ð£º×Ô¼º±àдµÄת»»º¯Êý£¬Ë¼Â·½«byteµÄ¸ßµÍ4λ·Ö¿ª£¬·Ö±ðת»»Îª¶ÔÓ¦µÄ×Ö·ûÈ»ºóºÏ³É·µ»ØµÄ×Ö·û´®¡£
java ´úÂë
public static String byteToString(byte b) { ......
ubuntuÏÂÓÃjavaÖ±½ÓÓÃFileWriterдÈëµ½Ò»¸ötxtÎļþÖÐÖ®ºó£¬ÓÉÓÚĬÈϱàÂëµÄÔµ¹Ê£¬²»ÄÜʹÓÃgedit´ò¿ª¸Ãtxt¡£
ÔÚ½«StringдÈëµ½txt֮ǰ£¬ÏÈת»»Ò»Ï±àÂ룬¾Í¿ÉÒÔ½â¾öÎÊÌâ¡£
ʵÀý´úÂëÈçÏ£º
import java.io.FileWriter;
import java.io.IOException;
public class testcode {
public static void main(String[] ......
ÔÚJAVAÖУ¬ÓÐÁù¸ö²»Í¬µÄµØ·½¿ÉÒÔ´æ´¢Êý¾Ý£º
1. ¼Ä´æÆ÷£¨register£©¡£ÕâÊÇ×î¿ìµÄ´æ´¢Çø£¬ÒòΪËüλÓÚ²»Í¬ÓÚÆäËû´æ´¢ÇøµÄµØ·½——´¦ÀíÆ÷ÄÚ²¿¡£µ«ÊǼĴæÆ÷µÄÊýÁ¿¼«ÆäÓÐÏÞ£¬ËùÒԼĴæÆ÷ÓɱàÒëÆ÷¸ù¾ÝÐèÇó½øÐзÖÅä¡£Äã²»ÄÜÖ±½Ó¿ØÖÆ £¬Ò²²»ÄÜÔÚ³ÌÐòÖиоõµ½¼Ä´æÆ÷´æÔÚµÄÈκμ£Ïó¡£
2. ¶ÑÕ»£¨stack£©¡£Î»ÓÚͨÓÃRAMÖУ¬µ ......
À´Ô´Êý×Ö³ö°æÔÚÏßhttp://www.epuber.com/?p=2732
¾ÍËãÄãûÌý˵¹ýSkype,Ò²¿Ï¶¨»á¶Ô»¥ÁªÍøµÄµÍ×Ê·Ñͨ»°¸ÐÐËȤ,½üÈÕ,SkypeΪ¹È¸èµÄAndroidƽ̨ÒÔ¼°´óÁ¿»ùÓÚJavaµÄÊÖ»úƽ̨ºÍÒƶ¯»¥ÁªÍøÉ豸(MID)ƽ̨·¢²¼ÐµIJâÊÔ°æVIPµç»°Èí¼þ¡£
Ò»Ö±ÒÔÀ´,¹úÄÚµçÐÅÔËÓªÉÌÊÓSkypeΪºéË®ÃÍÊÞ,ÒòΪÕâÖÖ»ùÓÚ»¥ÁªÍøµÄͨÐÅ·½Ê½ÈÃÔËÓªÉÌÎÞÀû¿Éͼ,È» ......