Test5.17

来源:互联网 发布:金天鹅软件 编辑:程序博客网 时间:2024/05/22 16:23
/*target:prove message in a class constructor will work or not
 * methods:define a class with constructor ,which would print
 * String vector ,create an array of this class but without initials.
 */
public class Test17 {
String test;
Test17(String s){test=s;System.out.println(test);}
public static void main(String[] args) {
Test17 [] line=new Test17[3];
}
}
//result shows there are no output
0 0