public static PortfolioData[] createPortfolioData(final int cnt,final int cntDest){
  PortfolioData[] portfolio=new PortfolioData[cntDest];
  for (int k=cnt; k < cntDest; k++) {
    portfolio[k]=new PortfolioData(k);
  }
  return portfolio;
}

public static PortfolioData [ ] createPortfolioData ( final int cnt , final int cntDest ) { PortfolioData [ ] portfolio = new PortfolioData [ cntDest ] ; for ( int k = cnt ; k < cntDest ; k ++ ) { portfolio [ k ] = new PortfolioData ( k ) ; } return portfolio ; }
this function < br > 1 . the creates an array of portfoliodata objects
