ITeye博客

thinkingmt的博客

thinkingmt · 共 19 篇文章

Android: failed to execute tools\android.bat

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 there are several versio…

2012-03-04 07:07 · Android sdk 使用 · 评论(0)

Web Authoring Component & Error 1406 when installing VISUAL STUDIO 2008

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 WebDesignerCo…

2012-02-28 06:58 · Visual Studio 使用 · 评论(0)

c# stuff which you must know

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 allows…

2012-01-02 04:41 · c#基本概念 · 评论(0)

How JVM works?

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 are huma…

2011-12-27 07:51 · java基础知识 · 评论(0)

Deeper understanding of Abstract Class & Interface

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 respectively…

2011-12-16 07:36 · java基础知识 · 评论(0)

The last TechBolg in this term

这是这个学期的最后一篇技术博客了,其实也算不上什么技术博客了,就是小小总结一下。 想想看,这东西也算是大学期间唯一做的认真的事情吧,虽然发表的东西并不多,但都是这个学期用Java时候印象较深刻的想法和收获。 最开始的时候,我重新对Java的基础知识进行了梳理: 这其中包括,对final, static, abstract 进行了较之以前更深刻的认识理解: 1.about static link: http://thinkingmt.iteye.com/admin/blogs/939794 2.about final link: http://thinkingmt.iteye.com/admi…

2011-05-24 09:13 · 评论(0)

An design pattern of queue in bank

这个学期的Course Work 选择了“银行排队模拟系统”这个题目, 用这学期新学的‘动词名词分析法’一想,感觉挺简单的。因为唯一一个核心的类---windows,在里边封装好处理客户的算法;再加上一个customer类,用ArrayList将其封装,按照固定顺序,传递给windows进行处理,整个程序就完成了;还有涵盖最大的类---bank,对windows类和ArrayList<Customer>进行封装。 最初的设计是这样的:用bank类监控windows类,每当windows空闲下来时候,分配给其任务(这样的话,windows需要一个isIdle的属性,来记录其空闲状态,每次isI…

2011-05-18 00:34 · java小程序代码 · 评论(0)

About Observer & Observable

从字面意义上看:Observer观察者,Observable可观察的。当然是观察者对可观察的对象进行观察。乍一看,这观察没什么难的,用普通的 if 语句就可以实现这个功能,但其实这里的Observer Pattern是有一些很好的优点的。 看程序前,先通过API对Observer Pattern进行最基本,最准确的认识和理解。 ---------------------------------------------------------------------------------------------------------------------------------- 先看j…

2011-05-08 09:02 · java基础知识 · 评论(0)

About Exception

以前写程序,只关注功能的实现,却对异常的出现不以为然。现在越来越发现,程序的实现需要合理的设计,只有对异常进行适当地处理,程序才能够健康,代码才能够通用。 Exception类可以分为两种:checked exception和unchecked exception。 1、运行时异常---属于unchecked exception RuntimeException类及其子类都被称为运行时异常,这种异常的特点是Java编译器不去检查它,也就是说,当程序中可能出现这类异常时,即使没有用try...catch语句捕获它,也没有用throws字句声明抛出它,还是会编译通过。例如,当除数为零时,就会抛出…

2011-04-28 23:47 · java基础知识 · 评论(0)

编程其实没什么难的

编程其实没什么难的,语法都是死的。 编程其实挺难的,死板语法蕴含着运行机制。 编程其实没什么难的,就是一堆语句的拼凑。 编程其实挺难的,要把独立的语句组合成一个整体。 编程其实没什么难的,达到目的方法千千万。 编程其实挺难的,实现一个目的需要考虑千千万。 编程其实没什么难的,练习之后就有进步。 编程其实挺难的,水平的进步绝不单单靠练习。 编程其实没什么难的... 编程其实挺难的... 纯属原创,仅供娱乐。

2011-04-28 23:37 · 课堂笔记 · 评论(0)

子类到底继承了什么?(A)

Java的继承可以在结构和功能上为程序带来很好的便捷性和灵活性。但是在继承的过程中,如果不能够非常深刻的理解这其中的一些规律规则,就不能够很好的发挥继承带来的优势,甚至会造成一些错误。 继承和abstract 这三个类的代码如下: import java.awt.event.*; public abstract class grandfather implements ActionListener { public abstract void m1(); } import java.awt.event.*; public abstract class father extends grand…

2011-04-18 13:57 · java基础知识 · 评论(2)

adjoining seats returner

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 to i…

2011-04-17 01:11 · java小程序代码 · 评论(0)

Calculator GUI Work(Version T1)

从大一开始就有人做计算器,那时候由于对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 * actionListener …

2011-04-16 02:30 · java小程序代码 · 评论(0)

About "sort of the objects"

今天完成了一个小工程,这个工程的功能是对学生进行管理,可以添加,删除,修改成绩,使学生按不同规则进行排序(我所实现的是按照studentName 和 averageScore进行排序)。 以前所能做到的只是对例如int,double等的基本数据类型进行比较,排序。现在可以利用对类实现Comparable<T>接口来达到对对象的比较排序的目的,其中, T 表示可以与此对象进行比较的那些对象的类型。一个很典型的例子就是String这个类,String实现了Comparable<String>这个接口,并对其唯一的抽象方法:compareTo()进行重写,使两个String可以比较,排序。 现如今…

2011-03-23 00:36 · java小程序代码 · 评论(0)

About"Timer" & "Calendar"

这个星期做了一个简单的计时器,这个计时器可以获得当前的系统时间,并计时。 主要用到了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 specified when creatin…

2011-03-12 10:31 · java小程序代码 · 评论(0)