首页 > 编程语言
再回首,Java温故知新——开篇说明
不知不觉在IT界从业2年了,两年时间足够一个人成长很多,当然也会改变很多事。在这两年时间里,随着对技术的深入了解,知识面的拓展以及工作难度的增大,渐渐的感觉自己技术方面根基不稳,多数问题也只是做到知其然而已。最近打算利用晚上的自由时间再学习一遍Java,所以入手了一本Java经典书籍——《Java核...
分类:编程语言   时间:2015-05-23 21:21:11    收藏:0  评论:0  赞:0  阅读:268
Java 面试题基础部分(一)
1 、一个".java"源文件中是否可以包括多个类(不是内部类)?有什么限制?可以有多个类,但只能有一个 public 的类,并且 public 的类名必须与文件名相一致。2、 Java 有没有 goto?java 中的保留字,现在没有在 java 中使用。3、说说&和&&的区别。&和&&都可以用作...
分类:编程语言   时间:2015-05-23 21:21:01    收藏:0  评论:0  赞:0  阅读:230
JAVA元运算符,一元运算符,二元运算符,三元运算符
一元运算符:序号一元运算符说明1i++给i加12i--给i减13++i给i加14--i给i减1i++;/*例:int i=1;i++;//先将i的值1赋值给i,然后i再加1*/i--;/*同上*/++i;/*例:int i=1;++i;//先将i+1,然后在赋值给i*/--i;/*同上*/二元运算符...
分类:编程语言   时间:2015-05-23 21:18:31    收藏:0  评论:0  赞:0  阅读:323
C++:一维数组和二维数组
一维数组:int a[c],其中a是数组名称,c是数组维度,数组维度必须是常量表达式!例如:1 int c=3;2 int a[c];//错误!由于c不是常量表达式,所以该定义非法。若将c定义为const int,即c成为一个常量表达式,则可正常编译。 数组的初始化:int a[3]={1,2}.....
分类:编程语言   时间:2015-05-23 21:18:11    收藏:0  评论:0  赞:0  阅读:346
常见加密算法分类
摘自:http://blog.csdn.net/zuiyuezhou888/article/details/7557050常见的加密算法可以分成三类,对称加密算法,非对称加密算法和Hash算法。对称加密 指加密和解密使用相同密钥的加密算法。对称加密算法的优点在于加解密的高速度和使用长密钥时的难破解性...
分类:编程语言   时间:2015-05-23 21:17:01    收藏:0  评论:0  赞:0  阅读:328
Java for LeetCode 110 Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:编程语言   时间:2015-05-23 21:16:31    收藏:0  评论:0  赞:0  阅读:239
Java for LeetCode 111 Minimum Depth of Binary Tree
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 le...
分类:编程语言   时间:2015-05-23 21:16:21    收藏:0  评论:0  赞:0  阅读:279
Java for LeetCode 113 Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum ...
分类:编程语言   时间:2015-05-23 21:15:51    收藏:0  评论:0  赞:0  阅读:266
Eclipse 报java.lang.OutOfMemoryError: PermGen space
工作时在本机测试环境发布一个web项目,Eclipse报了这个错误,网上搜罗一番,找到以下解决办法,记录一下。这块内存主要是被JVM存放Class和Meta信息的,Class在被Loader时就会被放到PermGen space中,它和存放类实例(Instance)的Heap区域不同,GC(Garb...
分类:编程语言   时间:2015-05-23 21:14:21    收藏:0  评论:0  赞:0  阅读:149
c++,当const char*为0时,不能将其直接赋给string
下面程序会崩溃:const char* t_objName = (obj!=NULL)?obj->getName(): 0;string objName=t_objName;coutgetName(): 0;string objName=(t_objName==0)?"":t_objName;cou...
分类:编程语言   时间:2015-05-23 21:14:11    收藏:0  评论:0  赞:0  阅读:271
文件监控之FileSystemWatcher(c++)
为了监控web程序的静态文件是否被恶意改动,所以学习了一下FileSystemWatcher 类对文件的监控,由于还在初级阶段,这里只贴一下关于FileSystemWatcher学习的一些代码。 具体代码如下:#using #include using namespace std;using ...
分类:编程语言   时间:2015-05-23 21:13:41    收藏:0  评论:0  赞:0  阅读:289
常用加密算法的Java实现(一)
常用加密算法的Java实现(一)——单向加密算法MD5和SHA摘自:http://www.blogjava.net/amigoxie/archive/2014/06/01/414299.html1、Java的安全体系架构1.1Java的安全体系架构介绍Java中为安全框架提供类和接口。JDK安全AP...
分类:编程语言   时间:2015-05-23 21:13:11    收藏:0  评论:0  赞:0  阅读:144
SuperSocket+unity 网络笔记
学习SuperSocket 必须要注意的 代码是 static void Main(string[] args) { WebSocketServer appServer = new WebSocketServer(); ...
分类:编程语言   时间:2015-05-23 21:11:41    收藏:0  评论:0  赞:0  阅读:1220
Java for LeetCode 109 Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.解题思路:同上题,JAVA实现如下: public TreeNode sor...
分类:编程语言   时间:2015-05-23 21:11:11    收藏:0  评论:0  赞:0  阅读:210
Java IO之处理流(缓冲流、转换流)
一、处理流:增强功能,提供性能,在节点流之上。二、节点流与处理流的关系节点流(字节流、字符流)处于IO操作的第一线,所有操作必须通过它们进行; 处理流可以对其他流进行处理(提高效率或操作灵活性)。三、缓冲流1、字节缓冲流BufferedInputStream BufferedOutputStreampackage IOBuffer;import java.io.BufferedInputStrea...
分类:编程语言   时间:2015-05-23 20:07:51    收藏:0  评论:0  赞:0  阅读:337
位图算法在用户验证上的应用
前几天在博客园看到一个帖子,讨论两个整数集合比较的算法问题。呵呵,其实任何整数集合的问题都是可以通过位图算法解决。简单地说,就是把值转化为数组下标,将O(n)复杂度降低到O(1)复杂度来获得最高效率。当然,会牺牲一点点空间。 解决单纯的整数集合比较问题,只是纯理论的。实际上,位图算法可以应用在用户登录之后的接口验证上。服务端的设计其实也没什么复杂的地方,就是维护一个数组罢了。只不过这个数组并非是...
分类:编程语言   时间:2015-05-23 20:07:11    收藏:0  评论:0  赞:0  阅读:280
C语言之结构体(2)
无意侵权:http://www.cnblogs.com/zhouxuanyu/p/4514754.html再识C中的结构体 在前面认识C中的结构体中我介绍了结构体的基础知识,下面通过这段代码来回顾一下: 1 #include 2 #define LEN 20 3 4 struct Student.....
分类:编程语言   时间:2015-05-23 20:05:41    收藏:0  评论:0  赞:0  阅读:260
javascript第二遍基础学习笔记(待续...)
1、兼容xhtml方法:2、文档模式:IE5.5引入,最初包含2种:混杂和标准模式;后IE又提出了准标准模式;文档开始未声明文档类型,浏览器默认会开启混杂模式。3、noscript标签用以提示浏览器不支持脚本。4、语法: 4-1、区分大小写:ECMAScript中的一切都是区分大小写的(如变量、函....
分类:编程语言   时间:2015-05-23 20:00:31    收藏:0  评论:0  赞:0  阅读:248
Java for LeetCode 107 Binary Tree Level Order Traversal II
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 ...
分类:编程语言   时间:2015-05-23 19:57:21    收藏:0  评论:0  赞:0  阅读:275
Java for LeetCode 108 Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.解题思路:首先要理解,什么叫做height balanced BST,然后就十分容易了,JAVA实现如下:...
分类:编程语言   时间:2015-05-23 19:57:01    收藏:0  评论:0  赞:0  阅读:225
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!