-
char parr[] = "zifuchuanshuzu";
char charr[] = { 'z','i','f','u','c','h','u','a','n','s','h','u','z','u' }; //和第一个不等价
char charr_test[] = { 'z','i','f','u','c','h','u','a','n','s','h','u','z','u' ,'\0'};//等价于第一个
-
public static void main(String[] args) {
// write your code here
//int[] bits = {1, 0, 0, 0};
//System.out.println(new Main().longestCommonPrefix(new String[]{"flower", "flow", "flight"}));
//System.out.printf(new String("love").length());//报错
System.out.print(new String("love").length()); //输出为4
}