User talk:Hooda ravi

Please do not use talk pages such as Glass-reinforced plastic for general discussion of the topic. They are for discussion related to improving the article. They are not to be used as a forum or chat room. If you have specific questions about certain topics, consider visiting our reference desk and asking them there instead of on article talk pages. See here for more information. Thank you. Materialscientist (talk) 05:51, 18 April 2011 (UTC)

Please stop your disruptive editing. If you continue to use talk pages for inappropriate discussion, as you did at Glass-reinforced plastic, you may be blocked from editing. Materialscientist (talk) 05:56, 18 April 2011 (UTC)

lkv-modal class
import java.util.ArrayList; public class Lkv { private static ArrayList customerList = new ArrayList; //sg7 public static ArrayList getCustList { return customerList; } ////////////////////////////// //for registering the customer public static Customer registerCustomer(ArrayList customerDetails) {   Customer customer = null; try {    boolean duplicateFlag = isCustomerDuplicate(customerDetails); if(!duplicateFlag) {     int customerId = generateCustomerId; customer = new Customer; customer.setCustomerId(customerId); customer.setAddress(customerDetails.get(1).toString); customer.setAge((Integer)customerDetails.get(2)); customer.setName(customerDetails.get(0).toString); customer.setGender((String)customerDetails.get(3)); customer.setDob((Date1)customerDetails.get(4)); appendCustomerList(customer); }    return customer; } catch(Exception e)  { return customer; } } ////////////////////////////////////// //for generating the customer id private static int generateCustomerId { int maxCustId = 0; for(int i=0; i maxCustId) {  maxCustId=custId; } } return maxCustId+1; }

///////////////////////////////////////// //appending particular customer to customer list

private static void appendCustomerList(Customer customer) { customerList.add(customer); }

public static boolean isCustomerValid(int customerId) { boolean isResult = false; for(int itr=0;itr customerDetails) {  boolean isResult = false; Customer customer1=new Customer; for(Customer customer : customerList) {    int icheck=customer.getDob.compareDate(customer.getDob,((Date1)customerDetails.get(4))); int idays=customer.getDob.findDate(customer.getDob.getDate,customer.getDob.getMonth,customer.getDob.getYear); int idayss=((Date1)customerDetails.get(4)).findDate(((Date1)customerDetails.get(4)).getDate,((Date1)customerDetails.get(4)).getMonth,((Date1)customerDetails.get(4)).getYear); if(customer.getName.equalsIgnoreCase((String)customerDetails.get(0)) &&      customer.getAddress.equalsIgnoreCase((String)customerDetails.get(1))       && customer.getAge == ((Integer)customerDetails.get(2)).intValue &&       customer.getGender.equalsIgnoreCase((String)customerDetails.get(3))&&(icheck==0)) //(idays==idayss))     {       isResult = true;       break;      }  } return isResult; } public String toString {  return ""; }  //////for getting existing details public static String[] getCustomerDetail(int customerId) {    String str[]=new String[5];  for(int itr=0;itr<customerList.size;itr++)  {  if(customerList.get(itr).getCustomerId == customerId)   {    str[0]="       Name:"+(customerList.get(itr)).getName;    str[1]="       Address:"+(customerList.get(itr)).getAddress;    str[2]="       Age:"+(customerList.get(itr)).getAge+"";    str[3]="       Gender:"+(customerList.get(itr)).getGender;    str[4]="       Date Of Birth:"+(customerList.get(itr)).getDob.getDate+"/"+(customerList.get(itr)).getDob.getMonth+"/"+(customerList.get(itr)).getDob.getYear+"";  } }  return str; } ///////////////for updating details public static Customer updateCustomerDetail(int customerId, ArrayList customerDetails) {  Customer customer = null; try {    for(int itr=0;itr<customerList.size;itr++) {     if(customerList.get(itr).getCustomerId == customerId) {       customerList.get(itr).setCustomerId(customerId); customerList.get(itr).setAddress(customerDetails.get(1).toString); customerList.get(itr).setAge((Integer)customerDetails.get(2)); customerList.get(itr).setName(customerDetails.get(0).toString); customerList.get(itr).setGender((String)customerDetails.get(3)); customerList.get(itr).setDob((Date1)customerDetails.get(4)); customer=customerList.get(itr); }    }     return customer; }  catch(Exception e)   { return customer; } } }