我收到的问题是:私人成员:NameNo_of_days Getit() -to enter the data membersCompute() -To calculate and return the total charges as charges_day * No_of_dayspublic class hotel{
pr
我在读Core Java Volume I - fundamentals (9th edition) by Cay S. Horstmann and Gary Cornell。这是我不懂的书上的一段。段落: undmodifiableCollection方法返回一个集合,该集合的equal方法不调用基础集合的equals方法。相反,它继承了object类的equals方法,后者只是测试对象是否相同。如果将集合或列表转换为仅集合,则不能再测试相同的内容。视图以这种方式工作,因为在此层次结构级别上没有很好地定义等式测试。但是,