KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test7 > CCTest7av


1 package test7;
2
3 public class CCTest7av {
4     
5     public void test(String JavaDoc permanent, String JavaDoc ... variable) {
6         permanent.indexOf("Hello"); //Check the methods provided after the first dot.
7

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

10     variable[0].indexOf("Hello"); //Check the CC after the dot. It should match the CC for String.
11
}
12
13     public static void testStatic(String JavaDoc permanent, String JavaDoc ... variable) {
14         permanent.indexOf("Hello"); //Check the methods provided after the first dot.
15

16
17     
18
19     }
20 }
21
Popular Tags