我正在处理的这个小程序的正确代码是什么?我只需要将 int 类型的数组添加到 Arraylist 中......粗体是主要问题(如果其余的工作...... -__-)!
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.text.DecimalFormat;
import java.util.ArrayList;
public class BinomialExpander extends JApplet implements ActionListener
{
JLabel lblFahrenheit;
JLabel lblCelsius;
JLabel outputCelsius;
JTextField txtFahrenheit;
double degreesFahrenheit;
FlowLayout layout;
ArrayList<int[]> pascalsT = new ArrayList<int[]>();
private int[] pascal1 = {1,1};
private int[] pascal2 = {1,2,1};
private int[] pascal3 = {1,3,3,1};
private int[] pascal4 = {1,4,6,4,1};
private int[] pascal5 = {1,5,10,10,5,1};
private int[] pascal6 = {1,6,15,20,15,6,1};
private int[] pascal7 = {1,7,21,35,35,21,7,1};
private int[] pascal8 = {1,8,28,56,70,56,28,8,1};
private int[] pascal9 = {1,9,36,84,126,84,36,9,1};
private int[] pascal10 = {1,10,45,120,210,120,45,10,1};
...
}