Defining annotations
Here is the definition of the annotation above. You can see that annotation definitions look a lot like interface definitions.
In fact, they compile to class files like any oth...
分类:
编程语言 时间:
2014-04-27 21:47:05
阅读次数:
348
原文链接: Start Using Java Lambda Expressions
下载示例程序 Examples.zip 。
原文日期: 2014年4月26日
翻译日期: 2014年4月27日
翻译人员: 铁锚
简介
(译者注:虽然看着很先进,其实Lambda表达式的本质只是一个"语法糖",由编译器推断并帮你转换包装为常规的代码,因此你可以使用更少的代码来实现同样的功能。本人建议不要...
分类:
编程语言 时间:
2014-04-27 21:45:03
阅读次数:
460
前段时间做了一个简单的企业信息网站,主要用到一些开源的框架和插件,网站开发完了,把用到的东西写出来分享一下
网站功能分析
(1)网站信息维护:网站信息分为很多种类型,有自己网站发布的新闻、知识,也有从其他网站上转载的相关内容,从功能上看都类似,内容主要是富文本,都已经抽象为信息维护功能,包括企业简介之类的,都抽象为网站到信息,只是属于特殊的类型,因此也延伸出另一个需求,网站信息类型维护...
分类:
Web程序 时间:
2014-04-27 21:34:04
阅读次数:
363
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gao.hzau;
import java.awt.Color;
import java.awt.FileDialog;
import java.awt.Font;
import j...
分类:
其他好文 时间:
2014-04-27 21:34:04
阅读次数:
492
JNDI,Java命名和目录接口,允许应用程序通过公共接口访问各种命名和目录服务。下图显示了JNDI架构。如JDBC(Java数据库连接),JNDI是不是服务,而是一组接口; 它允许应用程序使用一个标准化的API来访问许多不同的目录服务供应商。就像使用JDBC,那么JDK包含了JNDI接口,但不包括JNDI服务提供者 - 尽管Sun Microsystems公司提供的适配器,用于连接到现有的目录服...
分类:
编程语言 时间:
2014-04-27 21:33:59
阅读次数:
548
//扫雷游戏
package Bible001;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class Mine extends MouseAdapter {
private JFrame mainFrame;
private int[][] data;
private JButton[...
分类:
编程语言 时间:
2014-04-27 21:32:59
阅读次数:
363
1.Android中使用Matrix对图像进行缩放、旋转、平移、斜切等变换的。Matrix是一个3*3的矩阵,其值对应如下:下面给出具体坐标对应变形的属性|scaleX, skewX, translateX| |skewY, scaleY, translateY||0 ,0 , scale |Matrix提供了一些方法来控制图片变换:setTranslate(...
分类:
移动开发 时间:
2014-04-27 21:21:05
阅读次数:
518
ccnuacm training first week...
分类:
其他好文 时间:
2014-04-27 21:18:05
阅读次数:
281
Annotations are one of the fundamental language changes
introduced in Java SE5. They provide information that you need to fully describe your program, but that cannot be expressed in Java. Thus, anno...
分类:
编程语言 时间:
2014-04-27 21:14:59
阅读次数:
431
Meta-annotations
@Target
CONSTRUCTOR: Constructor declarationFIELD: Field declaration (includes enum constants) LOCAL_VARIABLE: Local variable declaration METHOD: Method declarationPACKAGE: Pack...
分类:
编程语言 时间:
2014-04-27 21:12:04
阅读次数:
385