Examples of LaptopInfo


Examples of test.model.LaptopInfo

    new InputStreamReader(
      ServerServices.class.getClassLoader().getResourceAsStream(path)));
  int count = 0;
  laptopCsv.readLine();
  String dataRow = laptopCsv.readLine();
  LaptopInfo lInfo;
  while (dataRow != null){
   lInfo= new LaptopInfo();
   String[] dataArray = dataRow.split(",");
   for (String item:dataArray) {
    if (count == 0) lInfo.setWareHouseID(Integer.parseInt(item));
    if (count == 1) lInfo.setManufacturer(item);
    if (count == 2) lInfo.setModel(item);
    if (count == 3) lInfo.setProcessor(item);
    if (count == 4) lInfo.setMemory(item);
    if (count == 5) lInfo.setDiskPorts(Integer.parseInt(item));

    ++count;
   }
   count = 0;
   lInfoList.add(lInfo);
View Full Code Here
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.