zoukankan      html  css  js  c++  java
  • 反射机制测试实体类User

    package org.entity;
    
    import java.util.Date;
    
    public class User {
    	public  String userNsme;
    	public String pwd;
    	public int role;
    	public String[] favs;
    	public String[] getFavs() {
    		return favs;
    	}
    
    	public void setFavs(String[] favs) {
    		this.favs = favs;
    	}
    
    	public String getUserNsme() {
    		return userNsme;
    	}
    
    	public void setUserNsme(String userNsme) {
    		this.userNsme = userNsme;
    	}
    
    	public String getPwd() {
    		return pwd;
    	}
    
    	public void setPwd(String pwd) {
    		this.pwd = pwd;
    	}
    
    	public int getRole() {
    		return role;
    	}
    
    	public void setRole(int role) {
    		this.role = role;
    	}
    
    	public int sayHello(String hello){
    		System.out.println(hello);
    		return 5;
    	}
    	public int sayHello3(String[] hello){
    		for(String s:hello){
    			System.out.println(s);
    		}
    		return 0;
    	}
    	public Date sayHello2(String hello){
    		System.out.println(hello);
    		return null;
    	}
    }
    

  • 相关阅读:
    参考资料来自 懒兔子 的公众号
    Etcd
    zookeeper 杂记
    十二五
    防火墙
    APScheduler
    docker管理工具protainer
    java学习笔记
    linux学习笔记1
    [POI2007]ZAP-Queries
  • 原文地址:https://www.cnblogs.com/a1111/p/6540273.html
Copyright © 2011-2022 走看看