OSDN Git Service

simplify the source
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Tue, 3 Nov 2009 21:23:16 +0000 (21:23 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Tue, 3 Nov 2009 21:23:16 +0000 (21:23 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@208 4e526526-5e11-4fc0-8910-f8fd03428081

jTsSplitter/trunk/src/jtssplitter/Main.java

index 94c04eb..527ffce 100644 (file)
@@ -2,10 +2,8 @@
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
-
 package jtssplitter;
 
-import java.io.File;
 
 /**
  *
@@ -15,24 +13,26 @@ public class Main {
 
     /**
      * @param args the command line arguments
+     *
      */
     public static void main(String[] args) {
         // TODO code application logic here
-        String inf,outf;
-        int ch=0;
-        inf="";
-        outf="";
-        for (int i=0;i<args.length;i++){
+        String inf;
+        String outf;
+        int ch = 0;
+        inf = "";
+        outf = "";
+        for (int i = 0; i < args.length; i++) {
             System.out.println(args[i]);
         }
-        if (args.length>1){
-            inf=args[0];
-            outf=args[1];
-            if (args.length>2){
-                ch=Integer.parseInt(args[2].trim(),10);
+        if (args.length > 1) {
+            inf = args[0];
+            outf = args[1];
+            if (args.length > 2) {
+                ch = Integer.parseInt(args[2].trim(), 10);
             }
         }
-        Tsfile t1=new Tsfile();
-        t1.splitTS(inf,outf,ch);
+        Tsfile t1 = new Tsfile();
+        t1.splitTS(inf, outf, ch);
     }
 }