上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 1、HttpServletRequest的使用 获取Request的参数的方法。 方法getParameter将返回参数的单个值 方法getParameterValues将返回参数的值的数组 方法getParameterMap将返回包含了所有参数名值对的java.util.Map<String,St 阅读全文
posted @ 2018-01-25 10:17 xxbbtt 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Java Servlet是运行在服务器端上的程序,Servlet是Java Servlet包中的一个接口,能够直接处理和相应客户端的请求,也可以将工作委托给应用的其他类。 这是Java Servlet包中的Servlet接口的源代码,init方法用于初始化,service用于响应请求,destroy 阅读全文
posted @ 2018-01-22 10:33 xxbbtt 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 阅读全文
posted @ 2018-01-17 17:10 xxbbtt 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a sorted array consisting of only integers where every element appears twice except for one element which appears once. Find this single elem 阅读全文
posted @ 2018-01-17 13:56 xxbbtt 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1、“覆盖”私有方法 class Super{ public void fun(){ System.out.println("Super"); } public static void main(String[] args){ Super sup = new Sub(); sup.fun(); } 阅读全文
posted @ 2018-01-12 15:26 xxbbtt 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Union-Find算法 如图所示,输入4、3就将4、3两个节点连接起来,如果4和3相连,3和8相连,那么4和8也是相连的,通过输入这样大量的整数对,获取保存大量的信息之后再判断两个节点是否相连,这样的问题被称为动态连通性问题。 这里的整数对我们称为连接,单个对象被称为触点,多个连接起来的对象称为等 阅读全文
posted @ 2018-01-02 16:22 xxbbtt 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 问题: 编写一道程序,从标准输入得到一个缺少左括号的表达式并打印出补全括号之后的中序表达式。例如,给定输入: 1 + 2 ) * 3 - 4 ) * 5 - 6 ) ) ) 你的程序应该输出: ((1 + 2) * ((3 - 4) * (5 - 6))) 解: 1 + 2)应该变成(1+2),这里 阅读全文
posted @ 2018-01-02 14:06 xxbbtt 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: 一、首先配置ssh无秘钥登陆, 先使用这条命令:ssh-keygen,然后敲三下回车; 然后使用cd .ssh进入 .ssh这个隐藏文件夹; 再创建一个文件夹authorized_keys,使用命令touch authorized_keys; 然后使用cat id_rsa.pub > authori 阅读全文
posted @ 2017-12-29 14:01 xxbbtt 阅读(23489) 评论(5) 推荐(2) 编辑
摘要: 以下内容部分来自于https://zhuanlan.zhihu.com/p/23141509,我尝试了一遍,然后添加了一些图片。。 其实我觉得在IDEA中使用scala插件然后创建project的时候直接用sbt就好了,但是由于某些网络的原因一直失败,然后就很麻烦,所以我干脆就用maven吧 我现在 阅读全文
posted @ 2017-12-29 11:05 xxbbtt 阅读(13529) 评论(0) 推荐(1) 编辑
摘要: 1、什么是View View是Android中所有控件的基类,还有ViewGroup,翻译是控件组,ViewGroup也是继承了View,所以其实ViewGroup本身是一个控件只是其内部可能包含了许多控件。 2、View的位置参数 top 左上角的纵坐标 left 左上角的横坐标 bottom 右 阅读全文
posted @ 2017-12-13 11:34 xxbbtt 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页