摘要: LeetCode 551题 You are given a string representing an attendance record for a student. The record only contains the following three characters: A stude 阅读全文
posted @ 2017-04-17 16:03 shixueyuan 阅读(1875) 评论(0) 推荐(0)
摘要: JAVA中类型转换的基本原则在于,(布尔型除外,无法转换)低精确度或者说小范围的类型可以自动地转为高精度或者大范围的类型,反之则需要强制转换。如图所示,左边的类型可以自动转换为右边的类型(一般发生在与大范围的类型的运算中),反之则需要强制转换。 图片来源(http://www.cnblogs.com 阅读全文
posted @ 2017-04-17 11:14 shixueyuan 阅读(1086) 评论(0) 推荐(0)