摘要: 第五章 使用Java函数库ArrayListadd(Object elem)remove(int index)remove(Object elem)contains(Object elem)isEmpty()indexOf(Object elem)size()get(int index)ArrayL... 阅读全文
posted @ 2015-09-22 17:39 包子糖Sakura 阅读(444) 评论(0) 推荐(0)
摘要: 第五章 编写程序伪码:伪码能帮你专注于逻辑而不需要顾虑到程序语法测试码:测试用的程序代码真实码:实际代码伪码伪码是介于真正的java程序与正常英语之间的一种语言。伪码大致包括3部分:实例变量的声明、方法的声明、和方法的逻辑。伪码最重要的部分是方法的逻辑。测试码测试代码写在编写方法之前。先编写测试用程... 阅读全文
posted @ 2015-09-22 12:41 包子糖Sakura 阅读(277) 评论(0) 推荐(0)
摘要: Move Zeroes题目:Given an array nums, write a function to move all 0‘s to the end of it while maintaining the relative order of the non-zero elements.For... 阅读全文
posted @ 2015-09-22 11:28 包子糖Sakura 阅读(745) 评论(0) 推荐(0)