#!/bin/java bsh.Interpreter

source("TestHarness.bsh");

foo( arg ) {

	if ( arg == null )
		arg = "null";

	if ( arg instanceof Object [] ) {
		print ("Array : "+String.valueOf(arg));
		for( int i=0; i< arg.length; i++ )
			print( arg[i] );
	} else
		this.interpreter.println(String.valueOf(arg));
}


oa = new Object [] { "foo", "bar" };
assert( oa instanceof Object [] );
assert( oa.length == 2 );
foo( oa );

complete();

