程序员七夕情人节表白代码
MainClass:com.wujinxi.ShowLove
package com.wujinxi;
import java.awt.*;
import java.awt.datatransfer.StringSelection;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Random;
/**
* @Author: Cool_Wu
* @Date: 2020-08-23 12:07
*/
public class ShowLove {
public static void main(String[] args) {
//打开记事本
Runtime rt = Runtime.getRuntime();
try {
rt.exec("notepad");
} catch (IOException e) {
e.printStackTrace();
}
//开启播放音乐线程
Thread t = new Thread(()