当前位置: 技术问答>java相关
帮忙看一下,急!!!100分
来源: 互联网 发布时间:2015-06-07
本文导语: import java.awt.*; import java.applet.*; import java.awt.event.*; class Myarray { int n; int next; int priou; }; public class Test extends Applet implements ActionListener { Label prompt; TextField input; Button btn1,btn2,btn3; Myarray[] a=new Myarray[10]; in...
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
class Myarray
{
int n;
int next;
int priou;
};
public class Test extends Applet implements ActionListener
{
Label prompt;
TextField input;
Button btn1,btn2,btn3;
Myarray[] a=new Myarray[10];
int i;
public void init()
{
prompt=new Label("请输入正规式:");
input=new TextField(10);
btn1=new Button("NFA");
btn2=new Button("DFA");
btn3=new Button("MINI");
add(prompt);
add(input);
add(btn1);
add(btn2);
add(btn3);
btn1.addActionListener(this);
}
public void paint(Graphics g)
{
for (i=0;i
import java.applet.*;
import java.awt.event.*;
class Myarray
{
int n;
int next;
int priou;
};
public class Test extends Applet implements ActionListener
{
Label prompt;
TextField input;
Button btn1,btn2,btn3;
Myarray[] a=new Myarray[10];
int i;
public void init()
{
prompt=new Label("请输入正规式:");
input=new TextField(10);
btn1=new Button("NFA");
btn2=new Button("DFA");
btn3=new Button("MINI");
add(prompt);
add(input);
add(btn1);
add(btn2);
add(btn3);
btn1.addActionListener(this);
}
public void paint(Graphics g)
{
for (i=0;i