KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test6 > CCTest6i


1 package test6;
2
3 public class CCTest6i {
4     
5     public static void main(String JavaDoc[] args) {
6         CCTest6 t = new CCTest6();
7     
8
9     }
10     
11     public void test(String JavaDoc permanent, String JavaDoc ... variable) {
12         permanent.indexOf("Hello"); //Check the methods provided after the first dot.
13

14         int dummy = variable.length; //Check that after the dot the CC is equal to CC content for an array.
15

16     variable[0].indexOf("Hello"); //Check the CC after the dot. It should match the CC for String.
17
}
18 }
19
Popular Tags