【发布时间】:2013-04-13 03:22:47
【问题描述】:
嘿,我一直在尝试让 main 运行这些方法,但我不记得该怎么做。 到目前为止,这是一个简单的程序,因为我 15 分钟前才开始使用它。
`
import java.awt.Robot;
import javax.swing.JFrame;
import java.lang.*;
import java.io.*;
public class sweetRevenge {
public static void main(String[] args) {
//call local static classes browserjacker and wallpaperjacker
start(browserJacker(1));
}
public static void browserJacker(int i)throws IOException{
try
{
//include bad things along with self made video of hacking linked to youtube
Process p=Runtime.getRuntime().exec("cmd /c start http://www.google.com");
}
catch(IOException e1) {System.out.println(e1);}
}
public static void wallpaperJacker (String args []) throws IOException {
Process p=Runtime.getRuntime().exec("cmd /c start");
}}
`
【问题讨论】:
-
只要
browserJacker(1);就可以了 -
我希望你不打算做任何恶意的事情。