Revert "add test code for running jar with arguments"

This reverts commit 5eb2a6e04e.
This commit is contained in:
Liesheng Long 2019-04-20 22:50:04 -04:00
parent e5f11278c6
commit 4524ad57f9
2 changed files with 1 additions and 28 deletions

View File

@ -3,16 +3,7 @@ package com.baeldung.jar;
public class JarExample { public class JarExample {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("Hello Baeldung Reader in JarExample!"); System.out.println("Hello Baeldung Reader!");
if(args == null) {
System.out.println("You have not provided any arguments!");
}else {
System.out.println("There are "+args.length+" argument(s)!");
for(int i=0; i<args.length; i++) {
System.out.println("Argument("+(i+1)+"):" + args[i]);
}
}
} }
} }

View File

@ -1,18 +0,0 @@
package com.baeldung.jar;
public class JarExample2 {
public static void main(String[] args) {
System.out.println("Hello Baeldung Reader in JarExample2!");
if(args == null) {
System.out.println("You have not provided any arguments!");
}else {
System.out.println("There are "+args.length+" argument(s)!");
for(int i=0; i<args.length; i++) {
System.out.println("Argument("+(i+1)+"):" + args[i]);
}
}
}
}