Where is the senior point ~~ I wrote a lottery loop I don't know how to jump out?

xiaoxiao2021-03-06  116

Import java.awt. *; import java.awt.event. *;

Public class checknumber imports actionlistener, keylistener {frame f = new frame (); textfield t = new textfield (); public checknumber () {

Label lb = new label ("mobile phone number extract"); panel p = new panel ();

T.SETCOLUMNS (20); P.ADD (T); Panel P1 = new panel (); p1.setLayout (New GridLayout (1, 2)); Button B0 = New Button ("Start Draw"); b0.setActionCommand ("START"); Button B1 = New Button ("Stop"); B1.SetActionCommand ("STOP"); p1.add (b0); p1.add (b1); b0.addactionListener (this); b1.addactionListener (this); F.Add (LB, "North"); F.Add (p, "center"); f.add (p1, "south"); f.addKeylistener (this); f.setsize (200, 150) F.setvisible (TRUE);

// Close the window f.addWindowListener (new WindowAdapter () {public void windowClosing (WindowEvent e) {System.exit (0);}});} public static void main (String [] args) {CheckNumber ck = new CheckNumber ( } Public void actionperformed (ActionEvent E) {string [] a; a = new string [1000]; A [0] = "13810092000"; A [1] = "13114292001"; A [2] = "13700152002" A [3] = "13810092003"; A [4] = "15489957226"; A [5] = "13359875005"; A [6] = "45678167889"; A [7] = "13454687787"; a [8] = "13878946512"; A [9] = "12457848897";

转载请注明原文地址:https://www.9cbs.com/read-97538.html

New Post(0)