java Tester one two
public class Tester { public static void main(String[] args) { if (args.length > 0) for (String str : args) System.out.print(str); System.out.print("--"); } }
public static void main(String[] args) {
if (args.length > 0)
for (String str : args)
System.out.print(str);
System.out.print("--");
}
The first argument represents the name of the class, and what come after are the program arguments.
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.