From 8025229b42403d904a198ea62dd5dc34f0e929e1 Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Tue, 3 Nov 2009 21:23:16 +0000 Subject: [PATCH] simplify the source git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@208 4e526526-5e11-4fc0-8910-f8fd03428081 --- jTsSplitter/trunk/src/jtssplitter/Main.java | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/jTsSplitter/trunk/src/jtssplitter/Main.java b/jTsSplitter/trunk/src/jtssplitter/Main.java index 94c04eb..527ffce 100644 --- a/jTsSplitter/trunk/src/jtssplitter/Main.java +++ b/jTsSplitter/trunk/src/jtssplitter/Main.java @@ -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;i1){ - 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); } } -- 2.11.0