`
thinkingmt
  • 浏览: 23818 次
  • 性别: Icon_minigender_1
  • 来自: 桂林
社区版块
存档分类
最新评论
文章列表
Sometimes when opening the "SDK manager", a error may violate:   The error state: failed to execute tools\android.bat : The system cannot find the file specified.   The solution is easy:   Extract the android-sdk-windows\temp\tools_r??-windows.zip (?? means the version number, if ther ...
  When install visual studio 2008, I stuck in two steps.   The first step is that it is fail to install the web authoring component. Actually, this component should be installed manually:   1. Extract the \WCU\WebDesignerCore\WebDesignerCore.EXE into a temporary folder. 2. Don't execute the ...
c# was initially created specifically for use with .NET platform. c# is used with the .NET framework, which allows you access to a number of libraries that specifically intended for use with Windows.   The common language runtime (CLR) is the most important component of  the .NET framework that al ...
JVM is a very important part for JAVA. It stands for Java Virtual Machine. The gap between human to machine Before understanding the theory of how JVM works, we'd better be aware of why we called Java, C, and C# as high level language. The common characteristics of those languages are they ar ...
  In Java, abstract class and interface are subtle to distinguish because they have a lot features in common.   Firstly, I want to illustrate some obvious differences between them:   From the keyword perspective:  The keyword of applying abstract class and interface are extends and implements ...
这是这个学期的最后一篇技术博客了,其实也算不上什么技术博客了,就是小小总结一下。   想想看,这东西也算是大学期间唯一做的认真的事情吧,虽然发表的东西并不多,但都是这个学期用Java时候印象较深刻的想法和收获。   最开始的时候,我重新对Java的基础知识进行了梳理: 这其中包括,对final, static, abstract 进行了较之以前更深刻的认识理解:   1.about static link:http://thinkingmt.iteye.com/admin/blogs/939794   2.about final link:http://thinkingmt ...
这个学期的Course Work 选择了“银行排队模拟系统”这个题目, 用这学期新学的‘动词名词分析法’一想,感觉挺简单的。因为唯一一个核心的类---windows,在里边封装好处理客户的算法;再加上一个customer类,用ArrayList将其封装,按照固定顺序,传递给windows进行处理,整个程序就完成了;还有涵盖最大的类---bank,对windows类和ArrayList<Customer>进行封装。   最初的设计是这样的:用bank类监控windows类,每当windows空闲下来时候,分配给其任务(这样的话,windows需要一个isIdle的属性,来记录其空闲 ...
从字面意义上看:Observer观察者,Observable可观察的。当然是观察者对可观察的对象进行观察。乍一看,这观察没什么难的,用普通的 if 语句就可以实现这个功能,但其实这里的Observer Pattern是有一些很好的优点的。   看程序前,先通过API对Observer Pattern进行最基本,最准确的认识和理解。 ---------------------------------------------------------------------------------------------------------------------------------- ...
以前写程序,只关注功能的实现,却对异常的出现不以为然。现在越来越发现,程序的实现需要合理的设计,只有对异常进行适当地处理,程序才能够健康,代码才能够通用。   Exception类可以分为两种:checked exception和unchecked e ...
编程其实没什么难的,语法都是死的。 编程其实挺难的,死板语法蕴含着运行机制。   编程其实没什么难的,就是一堆语句的拼凑。 编程其实挺难的,要把独立的语句组合成一个整体。   编程其实没什么难的,达到目的方法千千万。 编程其实挺难的,实现一个目的需要考虑千千万。   编程其实没什么难的,练习之后就有进步。 编程其实挺难的,水平的进步绝不单单靠练习。   编程其实没什么难的... 编程其实挺难的...                     纯属原创,仅供娱乐。                  
Java的继承可以在结构和功能上为程序带来很好的便捷性和灵活性。但是在继承的过程中,如果不能够非常深刻的理解这其中的一些规律规则,就不能够很好的发挥继承带来的优势,甚至会造成一些错误。   继承和abstract           这三个类的代码如下:   import java.awt.event.*; public abstract class grandfather implements ActionListener { public abstract void m1(); } import java.awt.event.*; ...
Many theater only provide single seat reservation and adjoing seat reservation, single seat reservation is easy to implement, and adjoing seat reservation can implements base on single reservation.   In this essay, I will introduce a original method to get a group of adjoining seats . Users need ...
从大一开始就有人做计算器,那时候由于对gui不太熟悉,再加上当时认为算法自己理解地不是很透彻,所以没有自己做过。最近一直想努力做好gui,所以做了一个计算器的gui。   这篇文章来实例自己如何一步一步没话界面,有好建议的希望提出来。   首先,上version 1:   代码:   import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * This class is to build the frame layout of the project. What's more, add ...
      今天完成了一个小工程,这个工程的功能是对学生进行管理,可以添加,删除,修改成绩,使学生按不同规则进行排序(我所实现的是按照studentName 和 averageScore进行排序)。         以前所能做到的只是对例如int,double等的基本数据类型进行比较,排序。现在可以利用对类实现Comparable<T>接口来达到对对象的比较排序的目的,其中,T 表示可以与此对象进行比较的那些对象的类型。一个很典型的例子就是String这个类,String实现了Comparable<String>这个接口,并对其唯一的抽象方法:compareTo()进 ...
这个星期做了一个简单的计时器,这个计时器可以获得当前的系统时间,并计时。   主要用到了java.util.Calendar 和 java.util.Timer 这两个类,这两个类非常实用,计时器这个程序也可以应用的很广,比如很多游戏需要计时(扫雷),测试也需要计时。   第一个类代码如下:   /** * The NumberDisplay class represents a digital number display that can hold * values from zero to a given limit. The limit can be specifie ...
Global site tag (gtag.js) - Google Analytics