File: EmptyArray.java

package info (click to toggle)
waba 1.5-3
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 1,996 kB
  • ctags: 3,231
  • sloc: ansic: 17,303; java: 4,436; sh: 2,345; makefile: 417
file content (26 lines) | stat: -rw-r--r-- 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

// library inclusions
import java.lang.*;
import waba.sys.*;
import waba.sys.VmShell;

class EmptyArray {

    private static final String a1[] = {"a", "b"};
    private static final String a2[] = {};

    public static void main (String[] args) {
	VmShell.println("String1 (2 el):");
	test(a1);

	VmShell.println("String1 (0 el):");
	test(a2);

    }  // method main


    private static void test(String[] args)
    {
	VmShell.println("String has "+args.length+" element(s)");
    }
}  // class