Package main

Source Code of main.Main

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package main;

import dao.DAO;
import entity.Info;
import java.util.List;
import org.apache.log4j.Logger;


/**
*
* @author naisiong.yap
*/
public class Main {
   
     private static Logger logger = Logger.getLogger(Main.class);
    
  //           DAO dao = new DAO();
  //       List<Info> vo ;
  public static void main(String[] args) throws Exception {
         DAO dao = new DAO();
         List<Info> vo = DAO.getList();    
         System.out.println(vo.size());
         //System.out.println(vo.get(0).getMsisdn());
         System.out.println(vo.get(1));
                 
         for (Info member : vo) {
         System.out.println("id : "+member.getId()+
                ", Name : " + member.getName());
      }

  }
}
TOP

Related Classes of main.Main

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.