摘要: 参考Java的官方tutorial和Doc整理如下。What is EnumAn enum type is a special data type.It enablesfor a variable to be a set of predefined constants.Because they ar... 阅读全文
posted @ 2015-11-09 23:31 树獭君 阅读(246) 评论(0) 推荐(0)
摘要: In Java, a method signature is the method name and the number and type of its parameters. Return types and thrown exceptions are not considered to be ... 阅读全文
posted @ 2015-11-09 22:48 树獭君 阅读(245) 评论(0) 推荐(0)
摘要: Reference: JavaPointBeginnerBookWhat is BindingConnecting a method call to the method body is known as binding.There are two types of bindingstatic bi... 阅读全文
posted @ 2015-11-09 22:47 树獭君 阅读(392) 评论(0) 推荐(1)
摘要: 阅读Java的官方Doc,总结如下。What is InterfaceAn interface is a reference type, similar to a class, that can contain onlyconstants (implicitly public, static, fi... 阅读全文
posted @ 2015-11-09 12:48 树獭君 阅读(419) 评论(0) 推荐(0)
摘要: 阅读了Java的官方Doc,在此总结如下。Abstract Class & MethodIn jave, "abstract" can be a modifier to class and method.Abstract class:A class that is declared abstract... 阅读全文
posted @ 2015-11-09 12:12 树獭君 阅读(283) 评论(0) 推荐(0)
摘要: QuestionWrite a program to find then-th ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For example,1, 2, 3, 4,... 阅读全文
posted @ 2015-11-09 06:13 树獭君 阅读(148) 评论(0) 推荐(0)
摘要: QuestionThere are a row ofnhouses, each house can be painted with one of thekcolors. The cost of painting each house with a certain color is different... 阅读全文
posted @ 2015-11-09 05:21 树獭君 阅读(173) 评论(0) 推荐(0)
摘要: QuestionThere are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a ... 阅读全文
posted @ 2015-11-09 03:57 树獭君 阅读(426) 评论(0) 推荐(0)
摘要: QuestionDesign an algorithm to encodea list of stringstoa string. The encoded string is then sent over the network and is decoded back to the original... 阅读全文
posted @ 2015-11-09 03:19 树獭君 阅读(477) 评论(0) 推荐(0)