题目内容
import java.util.Arrays;public class ArrayTest{/** * @param args */public static void main(String[] args){ char[] ch1 = new char[2]; ch1[0] = 'a'; ch1[1] = 'b'; char[] ch2 = new char[2]; ch2[0] = 'a'; ch2[1] = 'b'; String s1 = new String(ch1); String s2 = new String(ch2); System.out.println(s1.equals(s2)); }}代码运行结果是?
查看答案
搜索结果不匹配?点我反馈