类描述BeanInfo对JavaBean进行描述的接口Introspector描述所有的JavaBean的成员类PropertyDescriptor描述的是JavaBean的属性类shape.java
1 package reflect; 2 3 public class Shape { 4 ...
分类:
其他好文 时间:
2014-05-12 12:47:32
阅读次数:
318
类型转换函数能够实现把一个类 类型 转换成
基本数据类型(int、float、double、char等) 或者 另一个类
类型。其定义形式如下,注意不能有返回值,不能有参数,只能返回要转换的数据类型。class X{public: operator TYPE() { //...
分类:
编程语言 时间:
2014-05-12 12:23:59
阅读次数:
329
Filter.javapackage com.bjsxt.dp.filter;public
interface Filter { String doFilter(String str);}SesitiveFilter.javapackage
com.bjsxt.dp.filter;public...
分类:
其他好文 时间:
2014-05-12 12:08:37
阅读次数:
249
举例1:使用BeanUtils工具封装用户提交的数据。 1 public static
void main(String[] args)throws Exception { 2 3 // 模拟用户的输入的数据如下 4 5 String name =
"XML基础"; ...
分类:
其他好文 时间:
2014-05-12 12:05:34
阅读次数:
211
using System.Security.Cryptography; //用的类 /// ///
DES加密/解密类。 /// public class DESEncrypt { public DESEncrypt() { ...
分类:
其他好文 时间:
2014-05-12 10:38:19
阅读次数:
235
class Solution {public: int
maximalRectangle(vector > &matrix) { int rows = matrix.size(); if (rows
== 0) return 0; int cols =...
分类:
其他好文 时间:
2014-05-12 09:54:05
阅读次数:
250
1、选择表达式中的类型转换public class Test { public void static
main(String args[]){ int i = 5; System.out.println("Vlaue Is " + ((...
分类:
编程语言 时间:
2014-05-12 09:39:52
阅读次数:
294
//把秒转换成分钟 /// /// 把秒转换成分钟 /// /// public static int
SecondToMinute(int Second) { // / 换成 * 号...
分类:
其他好文 时间:
2014-05-12 09:33:41
阅读次数:
198
MakeCar.javapackage edu.hhxy;/* * 组装车 */public
abstract class MakeCar { //组装车头 public abstract void makeHead(); //组装车身 public
abstract...
分类:
其他好文 时间:
2014-05-10 21:08:42
阅读次数:
302
Given an integer, convert it to a roman
numeral.Input is guaranteed to be within the range from 1 to 3999.public class
Solution { public String int...
分类:
其他好文 时间:
2014-05-10 20:31:10
阅读次数:
335