猿问
下载APP

使用MVC结构显示商品结账系统的商品属性...出问题了,咋整?

我是根据书上关于MVC结构的示例改写成商品结账系统的,书上的示例运行后的窗口如下图。

(接下来,我放的东西有点多,额。。算是一个仿写代码的过程吧,看了以后可以防雷吧)

http://img.mukewang.com/5949950b0001f32704530317.jpg

书上的示例代码如下:

Example10_15.java 
public class Example10_15 {
   public static void main(String args[]){
      WindowTriangle win = new WindowTriangle();
      win.setTitle("使用MVC结构"); 
      win.setBounds(100,100,420,260);
   }
}

WindowTriangle.java 
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class WindowTriangle extends JFrame implements ActionListener {
   Triangle triangle;             //模型
   JTextField textA,textB,textC;   //视图
   JTextArea showArea;         //视图
   JButton controlButton;        //控制器
   WindowTriangle() {
      init();
      setVisible(true);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   }
   void init() {
     triangle = new Triangle();
     textA = new JTextField(5);   
     textB = new JTextField(5);
     textC = new JTextField(5);
     showArea = new JTextArea();    
     controlButton=new JButton("计算面积");
     JPanel pNorth=new JPanel();
     pNorth.add(new JLabel("边A:"));
     pNorth.add(textA);
     pNorth.add(new JLabel("边B:"));
     pNorth.add(textB);
     pNorth.add(new JLabel("边C"));
     pNorth.add(textC); 
     pNorth.add(controlButton); 
     controlButton.addActionListener(this);
     add(pNorth,BorderLayout.NORTH);
     add(new JScrollPane(showArea),BorderLayout.CENTER);
   }
   public void actionPerformed(ActionEvent e) {
     try{  
        double a = Double.parseDouble(textA.getText().trim());   
        double b = Double.parseDouble(textB.getText().trim());      
        double c = Double.parseDouble(textC.getText().trim()); 
        triangle.setA(a) ;          //更新数据
        triangle.setB(b);
        triangle.setC(c);
        String area = triangle.getArea();     
        showArea.append("三角形"+a+","+b+","+c+"的面积:"); 
        showArea.append(area+"\n");  //更新视图
     } 
     catch(Exception ex) {
        showArea.append("\n"+ex+"\n");
     }
   }
}

Triangle.java 
public class Triangle {
   double sideA,sideB,sideC,area;
   boolean isTriange;
   public String getArea() {
     if(isTriange) {
        double p = (sideA+sideB+sideC)/2.0;
        area = Math.sqrt(p*(p-sideA)*(p-sideB)*(p-sideC)) ;
        return String.valueOf(area);
     }
     else { 
        return "无法计算面积";
     }
   } 
   public void setA(double a) {
     sideA = a;
     if(sideA+sideB>sideC&&sideA+sideC>sideB&&sideC+sideB>sideA) 
       isTriange = true;
     else 
       isTriange = false;
   }
   public void setB(double b) {
     sideB = b;
     if(sideA+sideB>sideC&&sideA+sideC>sideB&&sideC+sideB>sideA) 
       isTriange = true;
     else 
       isTriange = false;
   }
   public void setC(double c) {
     sideC = c;
     if(sideA+sideB>sideC&&sideA+sideC>sideB&&sideC+sideB>sideA) 
       isTriange = true;
     else 
       isTriange = false;
   }
}


我自己改编的代码如下:

//Example10_15.java

public class Example10_15
{
	public static void main(String args[])
	{
	      WindowStringBuffer win = new WindowStringBuffer();
	      win.setTitle("使用MVC结构"); 
	      win.setBounds(100,100,420,260);
	}
}

//WindowStringBuffer.java 
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class WindowStringBuffer extends JFrame implements ActionListener 
{
	StringBuffer stringBuffer;             //模型
   JTextField textA,textB,textC,textD,textF;   //视图
   JTextArea showArea ;         //视图
   JButton controlButton;        //控制器
   
   WindowStringBuffer() 
   {
      init();
      setVisible(true);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   }
   
   void init() 
   {
	 stringBuffer = new StringBuffer();
     textA = new JTextField(5);   
     textB = new JTextField(5);
     textC = new JTextField(5);
     textD = new JTextField(5);
     textF = new JTextField(5);
     
     showArea = new JTextArea();    
     controlButton=new JButton("录入商品信息");
     
     JPanel pNorth=new JPanel();
     pNorth.add(new JLabel("商品编号:"));
     pNorth.add(textA);
     pNorth.add(new JLabel("商品名称:"));
     pNorth.add(textB);
     pNorth.add(new JLabel("商品产地:"));
     pNorth.add(textC); 
     pNorth.add(new JLabel("商品单价:"));
     pNorth.add(textD); 
     pNorth.add(new JLabel("商品数量:"));
     pNorth.add(textF); 
     
     pNorth.add(controlButton); 
     controlButton.addActionListener(this);  //设置监视器
     add(pNorth,BorderLayout.NORTH);
     add(new JScrollPane(showArea),BorderLayout.CENTER);
   }
   
   public void actionPerformed(ActionEvent e) //动作执行
   {
     try{  
    	int a = int.parseInt(textA.getText().trim());   
        String b = String.parseString(textB.getText().trim());      
        String c = String.parseString(textC.getText().trim()); 
        double d = Double.parseDouble(textD.getText().trim());
        int f = int.parseInt(textF.getText().trim());
        
        stringBuffer.setGoodNum(a);          //更新数据
        stringBuffer.setGoodName(b);
        stringBuffer.setGoodArea(c);
        stringBuffer.setGoodValue(d);
        stringBuffer.setGoodSum(f);
        
        String information = stringBuffer.showInformation();     
        showArea.append("商品编号:"+a+","+"商品名称:"+b+","+"商品产地:"+c+","+"商品价格:"+d+","+"商品数量:"+f); 
        showArea.append(information+"\n");  //更新视图
     } 
     catch(Exception ex) 
     {
        showInformation.append("\n"+ex+"\n");
     }
   }
}

//StringBuffer.java
public class StringBuffer 
{
	int goodNum,goodSum;
	double goodValue;
    String goodName,goodArea;
   
   public String getInformation() 
   {
     stringBuffer.showInformation();
   
   public  setGoodNum(int a)
   {
	   goodNum = a;
       return a;
   }
   
   public  setGoodName(string b)
   {
	   goodName = b;
       return b;
   }
   
   public  setGoodArea(string c)
   {
	   goodArea= c;
       return c;
   }
   
   public  setGoodValue(double d)
   {
	   goodValue = d;
       return d;
   }
   
   public  setGoodSum(int f)
   {
	   goodSum = f;
       return f;
   }
}

心痛2017....

我不知道我改的代码错在哪。。。难道显示商品属性不能用StringBuffer类做吗?!!

请大神指教也欢迎小伙伴前来讨论!

酉时酒味浓
浏览 3867回答 6
6回答

看风景非凡

额,你这代码错误太多了。。int只是基本数据类型,哪来parseInt()方法(Integer).String有这个parseString()方法吗?后面那些set方法每一个都没返回类型,而且直接return就行,还赋值干嘛。还有好多错先打好基础吧。

慕标0481585

https://api.jquery.com/?s=%E6%9C%80%E6%96%B0%E5%8E%8B%E5%BC%B9%E9%92%B3%E5%AD%90%E5%88%86%E8%A7%A3%E5%9B%BE%E7%BA%B8%E3%80%9094003O11.Q%28mk%29%E3%80%91cfZhttps://api.jquery.com/?s=%E6%89%93%E9%B8%9F%E5%B7%A5%E5%85%B7%E7%A7%83%E5%AD%90%E6%89%93%E9%B8%9F%E8%A7%86%E9%A2%91%E3%80%9094003O11.Q%28mk%29%E3%80%91VT8https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%89%93%E6%96%91%E9%B8%A0%E3%80%9094003O11.Q%28mk%29%E3%80%91Z88https://api.jquery.com/?s=%E6%96%91%E9%B8%A0%E6%89%93%E5%93%AA%E4%B8%AA%E9%83%A8%E4%BD%8D%E5%9B%BE%E8%A7%A3%E3%80%9094003O11.Q%28mk%29%E3%80%91px1https://api.jquery.com/?s=%E5%86%AC%E5%A4%A9%E6%89%93%E6%96%91%E9%B8%A0%E6%8A%80%E5%B7%A7%E3%80%9094003O11.Q%28mk%29%E3%80%91Qykhttps://api.jquery.com/?s=%E6%96%91%E9%B8%A0%E6%89%93%E5%93%AA%E4%B8%AA%E9%83%A8%E4%BD%8D%E5%9B%BE%E8%A7%A3%E3%80%9094003O11.Q%28mk%29%E3%80%91uWchttps://api.jquery.com/?s=%E7%BE%8E%E5%8F%B0%E5%9B%BD%E7%BB%84%E8%A3%85%E7%A7%83%E7%B2%BE%E5%BA%A6%E5%90%A7%E3%80%9094003O11.Q%28mk%29%E3%80%91Y27https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%B2%BE%E5%BA%A650%E7%B1%B3%E5%8F%AF%E4%BB%A5%E5%90%97%E3%80%9094003O11.Q%28mk%29%E3%80%91W06https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E8%86%9B%E7%BA%BF%E5%A4%9A%E5%B0%91%E6%9D%A1%E7%B2%BE%E5%87%86%E3%80%9094003O11.Q%28mk%29%E3%80%91u9dhttps://api.jquery.com/?s=%E8%86%9B%E7%BA%BF%E6%B7%B1%E5%BA%A6%E4%B8%80%E8%88%AC%E4%B8%BA%E5%A4%9A%E5%B0%91%E3%80%9094003O11.Q%28mk%29%E3%80%91xcZhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E9%85%8D%E4%BB%B6%E8%B0%81%E7%9F%A5%E9%81%93%E5%93%AA%E9%87%8C%E5%8F%AF%E4%BB%A5%E6%90%9E%E5%88%B0%E3%80%9094003O11.Q%28mk%29%E3%80%91C00https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E8%BF%87%E6%A1%A5%E5%93%AA%E9%87%8C%E8%83%BD%E5%BC%84%E5%88%B0%E5%8F%AF%E4%BB%A5%E6%89%BE%E5%88%B0%E3%80%9094003O11.Q%28mk%29%E3%80%91hFfhttps://api.jquery.com/?s=%E5%93%AA%E9%87%8C%E8%83%BD%E6%90%9E%E5%88%B0%E6%B0%94%E7%8B%97%E7%A7%83%E5%AD%90%E3%80%9094003O11.Q%28mk%29%E3%80%91t08https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%93%AA%E9%87%8C%E6%9C%89%E4%B9%B0%E3%80%9094003O11.Q%28mk%29%E3%80%91CoWhttps://api.jquery.com/?s=%E7%BB%88%E4%BA%8E%E6%89%BE%E5%88%B0%E6%9D%BF%E7%90%83%E5%A5%BD%E8%BF%98%E6%98%AF%E7%A7%83%E5%AD%90%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91Eouhttps://api.jquery.com/?s=%E5%93%AA%E9%87%8C%E8%83%BD%E6%90%9E%E5%88%B0%E6%B0%94%E7%8B%97%E7%A7%83%E5%AD%90%E3%80%9094003O11.Q%28mk%29%E3%80%91TFFhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%85%85%E4%B8%80%E6%AC%A1%E8%83%BD%E6%89%93%E5%A4%9A%E5%B0%91%E5%8F%91%E3%80%9094003O11.Q%28mk%29%E3%80%91a93https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%80%8E%E4%B9%88%E5%85%85%E6%B0%94%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91HVfhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%85%85%E6%B0%94%E8%BF%87%E7%A8%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91wDNhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%B0%94%E7%93%B6%E7%88%86%E7%82%B8%E6%89%93%E6%B0%94%E5%85%85%E6%B0%94%E6%89%93%E5%A4%9A%E5%B0%91%E6%B0%94%E5%8E%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91us5https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E9%AB%98%E5%8E%8B%E6%B0%94%E7%93%B6%E5%85%85%E6%B0%94%E6%8E%A5%E5%A4%B4%E3%80%9094003O11.Q%28mk%29%E3%80%91y7Lhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E9%AB%98%E5%8E%8B%E6%B0%94%E7%93%B6%E5%85%85%E6%B0%94%E6%8E%A5%E5%A4%B4%E3%80%9094003O11.Q%28mk%29%E3%80%91h8Phttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E4%B8%80%E8%88%AC%E8%83%BD%E6%89%93%E5%A4%9A%E5%B0%91%E4%B8%AA%E6%B0%94%E5%8E%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91P0yhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%94%A8%E5%A4%9A%E5%A4%A7%E6%B0%94%E5%8E%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91DRXhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E8%83%BD%E6%89%93%E5%A4%9A%E5%B0%91%E4%B8%AA%E6%B0%94%E5%8E%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91Wcvhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E4%B8%80%E7%93%B6%E6%B0%94%E6%89%93%E5%A4%9A%E5%B0%91%E5%8F%91%E3%80%9094003O11.Q%28mk%29%E3%80%91aP5https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%87%A0%E4%B8%AA%E6%B0%94%E5%8E%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91MEehttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%81%92%E5%8E%8B%E9%98%80%E5%93%AA%E7%A7%8D%E3%80%9094003O11.Q%28mk%29%E3%80%91Ymmhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%B0%94%E7%8B%97%E7%94%A8%E4%BB%80%E4%B9%88%E6%A0%B7%E6%81%92%E5%8E%8B%E9%98%80%E3%80%9094003O11.Q%28mk%29%E3%80%91Wf2https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%94%A8%E5%93%AA%E7%A7%8D%E6%81%92%E5%8E%8B%E9%98%80%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91S1qhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%81%92%E5%8E%8B%E9%98%80%E5%90%8E%E9%9D%A2%E8%BF%9E%E6%8E%A5%E4%BB%80%E4%B9%88%E3%80%9094003O11.Q%28mk%29%E3%80%91Jf1https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%81%92%E5%8E%8B%E9%98%80%E6%80%8E%E4%B9%88%E8%B0%83%E3%80%9094003O11.Q%28mk%29%E3%80%91IxQhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%87%BA%E5%94%AE%E6%81%92%E5%8E%8B%E9%98%80%E7%B2%BE%E5%BA%A6%E8%B0%83%E8%8A%82%E6%8A%80%E6%9C%AF%E3%80%9094003O11.Q%28mk%29%E3%80%91bothttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%AE%A1%E5%AD%90%E5%88%B0%E6%81%92%E5%8E%8B%E9%98%80%E7%9A%84%E8%B7%9D%E7%A6%BB%E3%80%9094003O11.Q%28mk%29%E3%80%91lm4https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%9A%84%E7%AE%A1%E5%AD%90%E9%82%A3%E4%B8%AA%E7%89%8C%E5%AD%90%E7%9A%84%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91MG2https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E9%85%8D%E4%BB%80%E4%B9%88%E7%AE%A1%E5%AD%90%E3%80%9094003O11.Q%28mk%29%E3%80%91L3thttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%93%AA%E7%A7%8D%E7%AE%A1%E5%AD%90%E5%A8%81%E5%8A%9B%E6%9C%80%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91ufjhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%88%9D%E9%80%9F%E5%A4%9A%E5%B0%91%E6%9C%89%E7%B2%BE%E5%BA%A6%E3%80%9094003O11.Q%28mk%29%E3%80%91I5Nhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%9A%84%E7%AE%A1%E5%AD%90%E9%95%BF%E7%9F%AD%E5%BD%B1%E5%93%8D%E7%B2%BE%E5%87%86%E5%BA%A6%E5%90%97%E3%80%9094003O11.Q%28mk%29%E3%80%91Ykrhttps://api.jquery.com/?s=%E7%A7%83%E9%B9%B0%E7%94%A8%E5%A4%9A%E9%95%BF%E7%9A%84%E7%AE%A1%E5%AD%90%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91t12https://api.jquery.com/?s=%E7%A7%83%E9%B9%B0%E7%AE%A1%E5%AD%90%E5%B0%BA%E5%AF%B8%E6%98%AF%E5%A4%9A%E5%B0%91%3F%E9%87%8D%E9%87%8F%E6%98%AF%E5%A4%9A%E5%B0%91%E3%80%9094003O11.Q%28mk%29%E3%80%91mP9https://api.jquery.com/?s=pcp%E7%AE%A1%E5%AD%90%E8%86%9B%E7%BA%BF%E5%87%A0%E6%9D%A1%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91tV6https://api.jquery.com/?s=%E5%BE%B7%E7%93%A6%E7%AE%A1%E5%AD%90%E6%AD%A3%E5%93%81pcp%E7%AE%A1%E5%AD%90%E4%BB%8B%E7%BB%8D%E3%80%9094003O11.Q%28mk%29%E3%80%91cXahttps://api.jquery.com/?s=%E6%88%B4%E5%AE%89%E5%A8%9C%E7%AE%A1%E5%AD%90%E5%A5%BD%E5%90%97%E3%80%9094003O11.Q%28mk%29%E3%80%91fSNhttps://api.jquery.com/?s=pcp%E5%BE%B7%E7%93%A6%E7%AE%A1635%E3%80%9094003O11.Q%28mk%29%E3%80%91r5phttps://api.jquery.com/?s=635%E6%9C%80%E5%A5%BD%E7%9A%84%E7%B2%BE%E5%BA%A6%E6%98%AF%E5%A4%9A%E7%B1%B3%E3%80%9094003O11.Q%28mk%29%E3%80%91ZGdhttps://api.jquery.com/?s=635%E6%9C%80%E5%A5%BD%E7%9A%84%E7%B2%BE%E5%BA%A6%E6%98%AF%E5%A4%9A%E8%BF%9C%E3%80%9094003O11.Q%28mk%29%E3%80%91JM1https://api.jquery.com/?s=635%E9%93%85%E5%BC%B9%E9%87%8D%E9%87%8F%E6%98%AF%E5%A4%9A%E5%B0%91%E5%85%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91MXchttps://api.jquery.com/?s=6mm%E9%93%85%E5%BC%B9%E9%87%8D%E9%87%8F%E3%80%9094003O11.Q%28mk%29%E3%80%91xcIhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%B7%98%E5%AE%9D%E6%80%8E%E4%B9%88%E6%90%9C%E3%80%9094003O11.Q%28mk%29%E3%80%91JeNhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E4%B8%80%E8%88%AC%E6%80%8E%E4%B9%88%E6%B7%98%E5%AE%9D%E6%90%9C%E7%B4%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91doXhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%B7%98%E5%AE%9D%E4%B8%8A%E6%80%8E%E4%B9%88%E6%89%BE%E3%80%9094003O11.Q%28mk%29%E3%80%91wa3https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%9E%84%E5%87%86%E9%95%9C%E6%80%8E%E4%B9%88%E8%B0%83%E3%80%9094003O11.Q%28mk%29%E3%80%91PnThttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%9E%84%E5%87%86%E9%95%9C%E6%A0%A1%E5%87%86%E5%9B%BE%E8%A7%A3%E3%80%9094003O11.Q%28mk%29%E3%80%91hHMhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%94%A8%E5%A4%9A%E5%B0%91%E5%80%8D%E7%9E%84%E5%87%86%E9%95%9C%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91QX6https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%94%A8%E4%BB%80%E4%B9%88%E7%9E%84%E5%87%86%E9%95%9C%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91ImGhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%9E%84%E5%87%86%E9%95%9C%E7%89%A9%E9%95%9C%E4%B8%80%E8%88%AC%E8%B0%83%E5%A4%9A%E5%B0%91%E3%80%9094003O11.Q%28mk%29%E3%80%91V5dhttps://api.jquery.com/?s=4x32%E5%85%89%E5%AD%A6%E7%9E%84%E5%87%86%E9%95%9C%E6%80%8E%E4%B9%88%E6%A0%B7%E3%80%9094003O11.Q%28mk%29%E3%80%91cgRhttps://api.jquery.com/?s=%E7%8E%B0%E5%9C%A8%E5%85%89%E5%AD%A6%E7%9E%84%E5%87%86%E9%95%9C%E4%B8%8D%E8%AE%A9%E5%9C%A8%E6%B7%98%E5%AE%9D%E7%BD%91%E5%8D%96%E5%91%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91SEzhttps://api.jquery.com/?s=%E4%B8%89%E7%82%B9%E4%B8%80%E7%BA%BF%E7%BC%BA%E5%8F%A3%E7%9E%84%E5%87%86%E5%99%A8%E5%9B%BE%E3%80%9094003O11.Q%28mk%29%E3%80%91Wk7https://api.jquery.com/?s=cp99%E5%A8%81%E5%8A%9B%E8%83%BD%E6%89%93%E5%A4%9A%E5%B0%91%E7%B1%B3%E3%80%9094003O11.Q%28mk%29%E3%80%91f0Fhttps://api.jquery.com/?s=%E6%97%A5%E6%9C%AC%E6%B0%94%E5%8A%A8%E7%8E%A9%E5%85%B7%E3%80%9094003O11.Q%28mk%29%E3%80%91lzuhttps://api.jquery.com/?s=%E7%A7%83%E7%9A%84%E5%A5%97%E4%BB%B6%E5%A4%9A%E5%B0%91%E9%92%B1%E3%80%9094003O11.Q%28mk%29%E3%80%91eDPhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E5%A5%97%E4%BB%B6%E4%BB%B7%E6%A0%BC%E7%B2%BE%E5%BA%A6%E6%81%92%E5%8E%8B%E3%80%9094003O11.Q%28mk%29%E3%80%91AjWhttps://api.jquery.com/?s=%E6%9D%BF%E7%90%83%E7%B2%BE%E5%BA%A6%E5%A4%9A%E5%B0%91%E7%B1%B3%E3%80%9094003O11.Q%28mk%29%E3%80%91WW4https://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%81%92%E5%8E%8B%E8%B0%83%E5%A4%9A%E5%B0%91%E3%80%9094003O11.Q%28mk%29%E3%80%91m88https://api.jquery.com/?s=%E6%89%93%E9%B8%9F%E9%83%BD%E6%9C%89%E4%BB%80%E4%B9%88%E5%B7%A5%E5%85%B7%E3%80%9094003O11.Q%28mk%29%E3%80%91Gqdhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%BD%91%EF%BC%8C%E6%B0%94%E9%98%80%E5%A8%81%E5%8A%9B%E3%80%9094003O11.Q%28mk%29%E3%80%91wnrhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E4%B8%80%E8%88%AC%E6%A0%A1%E5%A4%9A%E5%B0%91%E7%B1%B3%E5%BD%92%E9%9B%B6%E3%80%9094003O11.Q%28mk%29%E3%80%91N4yhttps://api.jquery.com/?s=%E6%A0%A1%E7%9E%84%E5%87%86%E9%95%9C%E4%B8%80%E8%88%AC%E5%A4%9A%E5%B0%91%E7%B1%B3%E6%9C%80%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91IKFhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E6%A0%87%E5%87%86%E5%A4%9A%E5%B0%91%E7%B1%B3%E6%9C%80%E5%90%88%E9%80%82%E3%80%9094003O11.Q%28mk%29%E3%80%91eqOhttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%87%95%E5%B0%BE%E5%A5%BD%E4%B8%8D%E5%A5%BD%E5%8A%A0%E5%B7%A5%E3%80%9094003O11.Q%28mk%29%E3%80%91h34https://api.jquery.com/?s=1911%E5%A4%9A%E5%B0%91%E5%8F%91%E5%AD%90%E5%BC%B9%E3%80%9094003O11.Q%28mk%29%E3%80%91Szqhttps://api.jquery.com/?s=%E5%AD%90%E5%BC%B9%E5%8F%A3%E5%BE%84%E5%A4%A7%E5%85%A8%E3%80%9094003O11.Q%28mk%29%E3%80%91X97https://api.jquery.com/?s=%E5%90%84%E7%A7%8D%E5%8F%A3%E5%BE%84%E5%AD%90%E5%BC%B9%E5%A4%A7%E5%85%A8%E3%80%9094003O11.Q%28mk%29%E3%80%91rzfhttps://api.jquery.com/?s=%E7%82%B932%E5%8F%A3%E5%BE%84%E5%AD%90%E5%BC%B9%E3%80%9094003O11.Q%28mk%29%E3%80%91u1dhttps://api.jquery.com/?s=%E6%97%A5%E6%9C%AC%E6%B0%94%E5%8A%A8%E7%8E%A9%E5%85%B7%E4%B8%93%E5%8D%96%E3%80%9094003O11.Q%28mk%29%E3%80%91Q0khttps://api.jquery.com/?s=%E7%93%A6%E6%96%AF%E6%B0%94%E5%8A%A8%E7%8E%A9%E5%85%B7%E4%B8%93%E5%8D%96%E3%80%9094003O11.Q%28mk%29%E3%80%91l1Rhttps://api.jquery.com/?s=%E5%8F%B0%E6%B9%BE%E6%B0%94%E5%8A%A8%E7%8E%A9%E5%85%B7%E3%80%9094003O11.Q%28mk%29%E3%80%91FW7https://api.jquery.com/?s=we%E4%BC%9F%E7%9B%8A%E4%BB%A3%E8%B4%AD%E6%B0%94%E5%8A%A8%E9%A9%AC%E8%B7%AF%E6%98%93%E3%80%9094003O11.Q%28mk%29%E3%80%91Yiehttps://api.jquery.com/?s=%E6%97%A5%E6%9C%ACmarui%E6%B2%99%E6%BC%A0%E4%B9%8B%E9%B9%B0%E5%A8%81%E5%8A%9B%E3%80%9094003O11.Q%28mk%29%E3%80%91Wjmhttps://api.jquery.com/?s=%E6%A0%BC%E6%B4%9B%E5%85%8Bg17%E7%9C%9F%E9%93%81%E6%94%B9%E8%A3%85%E3%80%9094003O11.Q%28mk%29%E3%80%91AYLhttps://api.jquery.com/?s=%E6%B0%94%E7%8B%97%E7%8E%B0%E5%9C%A8%E5%8F%AB%E4%BB%80%E4%B9%88%E3%80%9094003O11.Q%28mk%29%E3%80%91txDhttps://api.jquery.com/?s=8%E6%AF%AB%E7%B1%B3%E9%92%A2%E7%8F%A0%E4%B8%8B%E9%87%8E%E9%B8%A1%E3%80%9094003O11.Q%28mk%29%E3%80%91XGxhttps://api.jquery.com/?s=%E6%9D%BF%E7%90%83100%E7%B1%B3%E7%B2%BE%E5%BA%A6%E3%80%9094003O11.Q%28mk%29%E3%80%91Azshttps://api.jquery.com/?s=7.62%E5%8F%A3%E5%BE%84%E7%A7%83%E5%AD%90%E6%81%92%E5%8E%8B%E5%A4%9A%E5%B0%91%E3%80%9094003O11.Q%28mk%29%E3%80%91Maphttps://api.jquery.com/?s=%E6%9D%BF%E7%90%83%E5%85%A8%E5%A5%97%E9%85%8D%E4%BB%B6%E3%80%9094003O11.Q%28mk%29%E3%80%91xVnhttps://api.jquery.com/?s=%E6%9D%BF%E7%90%83%E6%B6%88%E5%A3%B0%E5%99%A8%E5%9B%BE%E3%80%9094003O11.Q%28mk%29%E3%80%91e8Mhttps://api.jquery.com/?s=%E6%A0%BC%E6%B4%9B%E5%85%8Bg19%E9%A6%99%E6%B8%AF%E7%89%88%E5%A4%9A%E5%B0%91%E3%80%9094003O11.Q%28mk%29%E3%80%91Ek2https://api.jquery.com/?s=5.5%E7%A7%83%E5%AD%90%E8%A6%81%E5%A4%9A%E9%95%BF%E7%AE%A1%E3%80%9094003O11.Q%28mk%29%E3%80%91zAIhttps://api.jquery.com/?s=pcp%E9%AB%98%E5%8E%8B%E6%B0%94%E7%93%B6%E6%80%8E%E4%B9%88%E7%94%A8%E3%80%9094003O11.Q%28mk%29%E3%80%91vlLhttps://api.jquery.com/?s=m9a1%E7%94%A8%E5%A4%9A%E5%A4%A7%E7%9A%84%E9%92%A2%E7%8F%A0%E5%BC%B9%E3%80%9094003O11.Q%28mk%29%E3%80%91S4Chttps://api.jquery.com/?s=%E7%A7%83%E5%AD%90%E7%9A%84%E5%8F%91%E5%B0%84%E5%8E%9F%E7%90%86%E3%80%9094003O11.Q%28mk%29%E3%80%91Bh4https://api.jquery.com/?s=cp99%E9%93%85%E5%BC%B9%E5%A8%81%E5%8A%9B%E6%B5%8B%E8%AF%95%E3%80%9094003O11.Q%28mk%29%E3%80%91HZMhttps://api.jquery.com/?s=%E6%9D%BF%E7%90%83%E9%92%9B%E7%AE%A1%E5%91%BC%E5%90%B8%E5%AD%94%E6%BC%8F%E6%B0%94%E3%80%9094003O11.Q%28mk%29%E3%80%91Qd8https://api.jquery.com/?s=%E5%9B%BD%E4%BA%A7%E7%A7%83%E5%AD%90%E4%B8%8E%E8%BF%9B%E5%8F%A3%E5%8C%BA%E5%88%AB%E3%80%9094003O11.Q%28mk%29%E3%80%91HUihttps://api.jquery.com/?s=%E7%A7%83%E5%AD%905.5%E6%81%92%E5%A4%9A%E5%B0%91%E5%8E%8B%E6%9C%80%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91Q99

文在内也

你这是自己写了个JDK吧

qq_迷宫的十字路口_2

你这个代码不会报错的吗?建议你从新找一个代码吧,看你的情况,知识不是一天两天能够补齐的。

我小时候可帅了

get,set方法eclipse都可以快捷生产的,再就是多用debug模式调试你就知道自己写的代码哪儿有问题

AUNO

@bllw89.
打开App,查看更多内容
随时随地看视频慕课网APP
我要回答
继续浏览精彩内容
慕课网APP
程序员的梦工厂
继续