¼ÆËãÆ÷ javaÔ´´úÂë
//package ÓéÀÖ;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
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 ¼ÆËãÆ÷ extends JFrame implements ActionListener, ItemListener {
private JButton an[];
private JButton qingkong, zh;
private JTextField k;
private JPanel rq1, rq2, rq3;
int zz = 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 a;
private boolean ff = true;
public ¼ÆËã_¸´ÔÓ() {
super("½øÖƼÆËãÆ÷");
Container c = getContentPane();
c.setLayout(new FlowLayout());
rq1 = new JPanel();
k = new JTextField(13);
rq1.add(k);
qingkong = new JButton("C");
rq1.add(qingkong);
c.add(rq1);
rq3 = new JPanel();
a = new JComboBox();
a.addItem("10½øÖÆת»»Îª2½øÖÆ");
a.addItem("10½øÖÆת»»Îª8½øÖÆ");
a.addItem("10½øÖÆת»»Îª16½øÖÆ");
a.addItem("2½øÖÆת»»Îª8½øÖÆ");
a.addItem("2½øÖÆת»»Îª10½øÖÆ");
a.addItem("2½øÖÆת»»Îª16½øÖÆ");
a.addItem("8½øÖÆת»»Îª2½øÖÆ");
a.addItem("8½øÖÆת»»Îª10½øÖÆ");
a.addItem("8½øÖÆת»»Îª16½øÖÆ");
a.addItem("16½øÖÆת»»Îª2½øÖÆ");
a.addItem("16½øÖÆת»»Îª8½øÖÆ");
a.addItem("16½øÖÆת»»Îª10½øÖÆ");
rq3.add(a);
zh = new JButton("ת");
rq3.add(zh);
c.add(rq3);
rq2 = new JPanel();
rq2.setLayout(new GridLayout(4, 4, 10, 10));
an = new JButton[string.length];
for (int i = 0; i < string.length; i++) {
an[i] = new JButton(string[i]);
an[i].addActionListener(this);
rq2.add(an[i]);
}
c.add(rq2);
qingkong.addActionListener(this);
zh.addActionListener(this);
a.addItemListener(this);
setSize(200, 250);
setVisible(true);
try {
JMen
Ïà¹ØÎĵµ£º
ºÜÔç֮ǰд¹ýÀûÓ÷ºÐͺͷ´Éä»úÖƳéÏóDAO £¬¶ÔÆäÖлñÈ¡×ÓÀà·ºÐ͵ÄclassÒ»Ö±²»ÊǺÜÀí½â¡£¹Ø¼üµÄµØ·½ÊÇHibernateBaseDaoµÄ¹¹Ôì·½·¨ÖеÄ
Type genType = getClass().getGenericSuperclass();
Type[] params = ((ParameterizedType) genType).getActualTypeArguments();
entityClass = (Class)params[0] ......
- ¼ÓÈë²ËÄñѧϰÍø£¬»ñµÃÕä²Ø×ÊÔ´
Java´úÂë Êý¾ÝÍÚ¾òÖоö²ßÊ÷C4.5Ô¤²âË㷨ʵÏÖ(°ë³ÉÆ·£¬»¹ÒªÐ´¹æÔòºó¼ôÖ¦¼°¶Ô·ÇÀëÉ¢Êý¾ÝÐÅÏ¢ÔöÒæ¼ÆËã) Java´úÂë package org.struct.decisiontree; import java.util.ArrayList; import java.util.Arrays; ......
µ¥ÀýģʽµÄʵÏÖ·½Ê½ÓкܶàÖÖ£¬ÔÚÕâÀï½éÉÜ×î¼òµ¥µÄÁ½ÖÖ¡£
µ¥ÀýģʽÄܹ»È·±£Ò»¸öÀàÖ»ÓÐÒ»¸öʵÀý£¨Õý³£Çé¿öÎÒÃÇ¿ÉÒÔnew³öÒ»¸öÀàµÄÎÞÊý¸öʵÀý£©£¬×ÔÐÐÌṩÕâ¸öʵÀý²¢ÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£ÏÂÃæ½éÉܵ¥ÀýģʽµÄʵÏÖ·½·¨£º
1. µ¥ÀýģʽÓÐÁ½ÖÖʵÏÖ·½Ê½£ºÒ»ÖÖÊǽ«Àൠ......
ͨ¹ýJava hread dump·ÖÎöÕÒµ½ºÄ·ÑCPU×î¸ßµÄÔ´´úÂë
×÷Õߣººú¼Ò»Ô 2010-04-11
×î½ü²úÆ·ÔÚÔËÐйý³ÌÖгöÏÖÁËÐÔÄÜÎÊÌ⣬Ôںܵ͵ÄÁ÷Á¿µÄÇé¿öÏÂCPU¾Í´ïµ½40%£¬Á÷Á¿ÉÔ¸ßʱCPU¾Í´ïµ½98%¡£
²úÆ·ÊÇJavaдµÄ£¬ÔËÐÐÓÚJBOSSƽ̨¡£²Ù×÷ϵͳΪredhat linux¡£µ±Äãͨ¹ýtopÃüÁî·¢ÏÖÄãµÄÓ¦ÓóÌÐòµÄ½ø³ÌÕ¼ÓÃCPU´ï98%ʱ£¬ÎÒÏëÄã¿Ï¶¨ÏëÖªµÀ¾¿¾¹Ê ......
±íÃæÉÏ¿´ÆðÀ´£¬ÎÞÂÛÓï·¨»¹ÊÇÓ¦ÓõĻ·¾³£¨±ÈÈçÈÝÆ÷Àࣩ£¬·ºÐÍÀàÐÍ£¨»òÕß·ºÐÍ£©¶¼ÀàËÆÓÚ C++ ÖеÄÄ£°å¡£µ«ÊÇÕâÖÖÏàËÆÐÔ½öÏÞÓÚ±íÃ棬Java ÓïÑÔÖеķºÐÍ»ù±¾ÉÏÍêÈ«ÔÚ±àÒëÆ÷ÖÐʵÏÖ£¬ÓɱàÒëÆ÷Ö´ÐÐÀàÐͼì²éºÍÀàÐÍÍƶϣ¬È»ºóÉú³ÉÆÕͨµÄ·Ç·ºÐ͵Ä×Ö½ÚÂë¡£ÕâÖÖʵÏÖ¼¼Êõ³ÆΪ²Á³ý£¨erasure£©£¨±àÒëÆ÷ʹÓ÷ºÐÍÀàÐÍÐÅÏ¢±£Ö¤ÀàÐÍ°²È«£¬È»ºóÔ ......