上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: 1. Collection接口 其主要的UML类图: Collection接口继承自Iterable接口。Iterable接口中定义了Iterable方法,该方法会返回一个迭代器,用于遍历合集中的元素。Collection接口为线性表、向量、栈、队列、优先队列及集合定义了共同的操作。java集合框架 阅读全文
posted @ 2017-12-16 14:10 zeroingToOne 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 在学习Servlet时,运行程序时报错:Server Tomcat v7.0 Server at localhost failed to start.如图 网上查的原因主要是改web.xml配置文件,但修改后并未成功。后来才发现原因不在配置文件。 发现自己的错误在于:ClassNotFoundExc 阅读全文
posted @ 2017-12-12 10:50 zeroingToOne 阅读(1317) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2017-12-04 21:30 zeroingToOne 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. 阅读全文
posted @ 2017-12-04 20:39 zeroingToOne 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Find the sum of all left leaves in a given binary tree. Example: 阅读全文
posted @ 2017-12-02 21:41 zeroingToOne 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1. 创建数据库表 create table Course( courseId char(5), subjectId char(4) not null, courseNumber integer, title varchar(50) not null, numOfCredits integer, p 阅读全文
posted @ 2017-12-01 20:22 zeroingToOne 阅读(6920) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2017-11-30 19:16 zeroingToOne 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For 阅读全文
posted @ 2017-11-28 21:12 zeroingToOne 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 参考资料:java核心技术 卷II 为中断套接字操作,可使用java.nio包提供的SocketChannel类。可以使用如下方式打开SocketChannel: java实现如下: 执行程序,点击Blocking,在第一批的10个数字执行过程中,点击cancel,仍会继续输完10个数字,Inter 阅读全文
posted @ 2017-11-27 22:41 zeroingToOne 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 参考资料:Java核心技术 卷II 1. 使用Telent工具连接到服务器 打开Telnet:电脑右键,选择属性->控制面板主页->程序->打开或关闭Windows功能,在弹出的窗口中选择Telnet客户端。 cmd打开命令行窗口, 方法一:输入: 方法二: 首先在命令窗中输入:telnet,再在弹 阅读全文
posted @ 2017-11-27 21:30 zeroingToOne 阅读(256) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 下一页