01: package test7;
02:
03: public class CCTest7aiii {
04:
05: public void test(String permanent, String... variable) {
06: permanent.indexOf("Hello"); //Check the methods provided after the first dot.
07:
08: int dummy = variable.length; //Check that after the dot the CC is equal to CC content for an array.
09:
10: }
11:
12: public static void testStatic(String permanent, String... variable) {
13: permanent.indexOf("Hello"); //Check the methods provided after the first dot.
14:
15: int dummy = variable.length; //Check that after the dot the CC is equal to CC content for an array.
16:
17: variable[0].indexOf("Hello"); //Check the CC after the dot. It should match the CC for String.
18: }
19: }
|