恶搞弹窗代码

一个弹窗代码,别在自己电脑上运行

讲解下次发

package xin;

import java.awt.Frame;
import java.util.Random;

import javax.swing.JFrame;

public class tantantan {

public static void main(String[] args) {

	int n=0;
	Random rd=new Random();
	while(n<500) 
	{
		Frame frame=new Frame("弹弹弹");
		frame.setSize(400,100);
		frame.setLocation(rd.nextInt(1920),rd.nextInt(1080));
		frame.setVisible(true);
		n++;
		
	}
}

}

你可能感兴趣的:(算法,java,c++)