import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
public class moreFiles implements Runnable{
private String URLPath;
private String filePath;
private String fileName;
public moreFiles(String URLPath,String filePath,String fileName){
this.URLPath=URLPath;
this.filePath=filePath;
this.fileName=fileName;
}
public static void main(String[] args) {
List<Thread> ThreadList = new ArrayList<>();
String BaseUrlpath="https://bi.xunleimp4.com/files/1280/";
String uRLPathString="";
String fileNameString="";
String filePathString="C:\\JavaEE\\JAVAEEDownload\\";
for(int i=1;i<150;i++){
if(i>=100)
uRLPathString=BaseUrlpath+i+".ts";
if((i>10 )&& (i<100)){
uRLPathString=BaseUrlpath+"0"+i+".ts";
}
if(i<10){
<
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
public class moreFiles implements Runnable{
private String URLPath;
private String filePath;
private String fileName;
public moreFiles(String URLPath,String filePath,String fileName){
this.URLPath=URLPath;
this.filePath=filePath;
this.fileName=fileName;
}
public static void main(String[] args) {
List<Thread> ThreadList = new ArrayList<>();
String BaseUrlpath="https://bi.xunleimp4.com/files/1280/";
String uRLPathString="";
String fileNameString="";
String filePathString="C:\\JavaEE\\JAVAEEDownload\\";
for(int i=1;i<150;i++){
if(i>=100)
uRLPathString=BaseUrlpath+i+".ts";
if((i>10 )&& (i<100)){
uRLPathString=BaseUrlpath+"0"+i+".ts";
}
if(i<10){
<