首页 > 编程语言
Java compiler level does not match the version of the installed Java project facet
今天用maven新建一个项目导入到MyEclipse中,项目前面显示了一个小叉叉,代码中却没有任何错误。于从 problems 视图中查看错误信息,错误信息的“Description”显示: Java compiler level does not match the version of the installed Java project facet. 该问题的解决方案有如下两种: ...
分类:编程语言   时间:2014-07-27 11:23:22    收藏:0  评论:0  赞:0  阅读:349
一张图让你看清Java集合类(Java集合类的总结)
现在关于Java集合类的文章很多,但是我最近看到一个很有意思图片,基本上把Java集合的总体框架都给展现出来了,很直观。 在这里,集合类分为了Map和Collection两个大的类别。 处于图片左上角的那一块灰色里面的四个类(Dictionary、HashTable、Vector、Stack)都是线程安全的,但是它们都是JDK的老的遗留类,现在基本都不怎么使用了,都有了...
分类:编程语言   时间:2014-07-27 11:23:12    收藏:0  评论:0  赞:0  阅读:308
Python 30分钟入门——数据类型and控制结构
Python是一门脚本语言,我也久闻大名,但正真系统的接触学习是在去年(2013)年底到今年(2014)年初的时候。不得不说的是Python的官方文档相当齐全,如果你是在Windows上学习Python,安装包自带的“Python Manuals”就是一份很好的学习资料(基本上不用去找其他资料了);尤其是其中的Tutorial,非常适合初学者。本文一方面总结了python语言的核心——数据类型和控制结构;另一方面,通过与其他语言的对比表达了我对Python的一些拙见。...
分类:编程语言   时间:2014-07-27 11:22:32    收藏:0  评论:0  赞:0  阅读:344
C++ 句柄类的原理以及设计
句柄类存在的意义是为了弥补将派生类对象赋给基类对象时发生的切片效应。例如下面的程序: multimap basket; Base base; Derived derive; basket.insert(base); //ok,add copy of base; basket.insert(derive); //ok,but derive sliced down to its base part....
分类:编程语言   时间:2014-07-27 11:21:12    收藏:0  评论:0  赞:0  阅读:300
listView.getChildAt(i)时java.lang.NullPointerException
BaseAdapter返回的是当前屏幕所能显示Item条数的组件,所以通过listView.getChildAt(i); 返回的是当前屏幕所能显示的组件,不能通过listView.getChildAt(i)方法获取除当前屏幕所能显示组件以外的其它组件。...
分类:编程语言   时间:2014-07-27 11:17:52    收藏:0  评论:0  赞:0  阅读:356
c++ 银行管理系统及报告
#include #include using namespace std; class information { public :     string num ;//账号  string name;//用户名     string key;//密码     string ID;//身份证号     string tel;//电话号码     double money;/...
分类:编程语言   时间:2014-07-27 11:09:42    收藏:0  评论:0  赞:0  阅读:416
Divide Two Integers leetcode java
题目:Divide two integers without using multiplication, division and mod operator.题解:这道题我自己没想出来。。。乘除取模都不让用。。那只有加减了。。。我参考的http://blog.csdn.net/perfect888....
分类:编程语言   时间:2014-07-27 11:06:32    收藏:0  评论:0  赞:0  阅读:459
javascript 动态推断html元素
在javascript中为了针对不同的元素运行不同的操作,须要在javascript中对触发事件的元素进行推断,然后运行不同的操作。样例:htmljavascript获取input的name和id属性都不成功,可是value却是能够的,不知道是什么原因。參考:var obj=document.get...
分类:编程语言   时间:2014-07-27 11:06:22    收藏:0  评论:0  赞:0  阅读:204
Container With Most Water leetcode java
题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e....
分类:编程语言   时间:2014-07-27 11:04:52    收藏:0  评论:0  赞:0  阅读:266
入门编程语言的选择问题
目前国内很多学校计算机学科各专业(注意没有考虑其他专业)学习的第一门编程语言大部分是C/C++,但是国外许多大学有选择Java,Python等作为入门语言。大体来说,我赞成C语言一定要学,但是否作为入门语言值得进一步尝试。 一般来说,反对C语言作为第一门编程语言的理由比较难学,更贴近机器而...
分类:编程语言   时间:2014-07-27 11:03:12    收藏:0  评论:0  赞:0  阅读:388
N-Queens II leetcode java
题目:Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.题解:这道题跟NQueens的解法完全一样(具....
分类:编程语言   时间:2014-07-27 11:00:42    收藏:0  评论:0  赞:0  阅读:306
N-Queens leetcode java
题目:The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return a....
分类:编程语言   时间:2014-07-27 11:00:22    收藏:0  评论:0  赞:0  阅读:380
Pow(x,n) leetcode java
题目:Implement pow(x, n).题解:pow(x,n)就是求x的n次方。x的N次方可以看做:x^n = x^(n/2)*x^(n/2)*x^(n%2)。所以利用递归求解,当n==1的时候,x^n=x。当然n是可以小于0的,2^(-3) = 1/(2^3)。按照上面那个规律就可以解决了....
分类:编程语言   时间:2014-07-27 10:59:32    收藏:0  评论:0  赞:0  阅读:298
[XPath/Python] XPath 与 lxml (四)XPath 运算符
XPath 中支持的运算符# | 或: 返回所有 price 和 title 节点集合>>> root.xpath('//price|//title')[, , , ]# + 加法:返回所有 price 子元素前两个之和>>> root.xpath('//price[1]/text() + //pr...
分类:编程语言   时间:2014-07-27 10:56:12    收藏:0  评论:0  赞:0  阅读:411
centos 6.5 x64编译有python的vim7.4
wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-extra.tar.gzwget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gzwget ftp://ftp.vim.org/pub/vim/unix/v...
分类:编程语言   时间:2014-07-27 10:55:52    收藏:0  评论:0  赞:0  阅读:372
PROCESS_YIELD()宏和C语言的switch语句< contiki学习笔记之七>
写在前面: 按照main()函数的代码一行一行的分析,该是看到了 etimer_process 这个位置。但是etimer_process实现里的一个宏 PROCESS_YIELD()引出了很多故事,于是单独把整个宏的东西整理成笔记,贴出来,和学习contiki的伙伴分享。 在说这个宏之前,...
分类:编程语言   时间:2014-07-27 10:51:52    收藏:0  评论:0  赞:0  阅读:406
windows下安装python的包管理工具pip,scikit-learn
打开https://pip.pypa.io/en/latest/installing.html#python-os-support下载pip-get.py进入python,执行pip-get.py安装完pip,setuptool工具。进入.python/scripts目录,执行pip install...
分类:编程语言   时间:2014-07-27 10:47:52    收藏:0  评论:0  赞:0  阅读:468
Single Number II leetcode java
题目:Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtim....
分类:编程语言   时间:2014-07-27 10:46:02    收藏:0  评论:0  赞:0  阅读:339
Single Number leetcode java
题目:Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime comp....
分类:编程语言   时间:2014-07-27 10:43:42    收藏:0  评论:0  赞:0  阅读:287
Spring源码阅读:IOC容器之BeanFactory
Spring IOC容器系列的设计与实现命名解释 容器:这里说的容器不是Java中的集合容器,也不是Web程序运行的环境。而是一组API组成的框架。 IOC:控制反转。控制是对Bean的创建的控制,反转从程序员手写创建Bean转为由容器来创建。IOC又名DI(依赖注入),说明了Spring中IOC的...
分类:编程语言   时间:2014-07-27 10:43:32    收藏:0  评论:0  赞:0  阅读:358
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!