1、创建数据库可以这样:IF EXISTS (SELECT * FROM sysdatabases WHERE name = '数据库名称')BEGIN DROP database 数据库名称END;CREATE database 数据库名称;2、创建表:IF EXISTS (SELECT * FROM sysobjects WHERE name = '表名')BEGIN DROP TABLE 表...
服务器端业务接口public interface Biz extends Remote {public String aloha() throws RemoteException;}服务器端业务实现public class BizImpl extends UnicastRemoteObject implements Biz {private static final long serialVers...
java的Runtime.getRuntime().exec(commandStr)可以调用执行cmd指令.cmd /c dir 是执行完dir命令后关闭命令窗口.cmd /k dir 是执行完dir命令后不关闭命令窗口.cmd /c start dir 会打开一个新窗口后执行dir指令,原窗口会关闭.cmd /k start dir 会打开一个新窗口后执行dir...
扫描500个IP10秒钟左右, 一个IP等待0.3秒用java写的过程编程,供参考:package steeven;import java.sql.*;import java.io.*;import java.util.*;import java.text.*;import javax.servlet.http.*;public class Ip extends Common im...
public class Text{public static void main(String[] args){double[][] d;String s = "1,2;3,4,5;6,7,8";String[] sFirst = s.split(";");d = new double[sFirst.length][];for (int i = 0; i < sFirst.len...