From ea3e1b949dcbdc09518f17eee0bcf21d41d76896 Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Mon, 19 Nov 2018 22:59:50 -0700 Subject: OJ (aka OpenJava) modernization/mirroring Signed-off-by: Kenny Ballou --- tutorial/examples/freeargs/Test.oj | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tutorial/examples/freeargs/Test.oj (limited to 'tutorial/examples/freeargs/Test.oj') diff --git a/tutorial/examples/freeargs/Test.oj b/tutorial/examples/freeargs/Test.oj new file mode 100644 index 0000000..86a6cc9 --- /dev/null +++ b/tutorial/examples/freeargs/Test.oj @@ -0,0 +1,28 @@ +/* + * Test.oj + * + * Apr 13, 1999 Michiaki Tatsubori + */ +package examples.freeargs; + + +import java.lang.Object; + + +/** + * Just a test. + */ +public class Test +{ + + /** + * This is main method. + */ + public static void main( String[] args ) { + Collection c = new Collection(); + c.set( new Integer( args.length ), args[0], args[1] ); + c.add( new Integer( args.length ), args[0], args[1] ); + System.out.println( c.size() ); + } + +} -- cgit v1.2.1