Signature of method changed to add List<DVDInfo> as a parameter    

    public static void populateList(List<DVDInfo> info) throws Exception {
            BufferedReader br = new BufferedReader(new FileReader(new File("C:\\src\\dvdInfo.txt")));
            //read each line of dvdInfo.txt below
             String line = null;
             while ((line = br.readLine())!= null) { //check line in loop
                String[] tokens = line.split("/");
                DVDInfo infoItem = new DVDInfo(tokens[0],tokens[1],tokens[2]);
                info.add(infoItem);      
            } 
          }

main()
//dvdList is now passed to the method.
public static void main(String[] args) {
    ArrayList<DVDInfo>  dvdList= new ArrayList<DVDInfo>();
    try{
        populateList(dvdList);
    }catch(Exception e){
        System.out.println("Exception caught"+e.getMessage());
    }
    System.out.println(dvdList);
}

Infinite Loop Issue
This section of the code will cause an infinite loop.
      String line=br.readLine();
      while(line!=null) {
          DVDInfo = new DVDInfo(t,g,a);

      } 

This is caused because one line is read from the buffer and then a loop is executed while that line is not null.  Since a new line is never read from the buffer the line will never be null, creating an infinite loop.  This can be fixed using:
            String line = null;
            while ((line = br.readLine())!= null) { //check line in loop

            } 

This loop construct assigns the line from the buffer to `Strin

 Q:

C++ Passing values to 2D char array in a function

I am trying to use a function to sort through a char array full of words. The current issue I am having is that in my sortNames function I am getting the error, "expression must be a modifiable lvalue" at the part below
hold = nameArr[ii];
nameArr[ii] = nameArr[jj];
nameArr[jj]
Signature of method changed to add List < DVDInfo > as a argument    

     public inactive void populateList(List < DVDInfo > info) shed Exception { 
             BufferedReader br = raw BufferedReader(new FileReader(new File("C:\\src\\dvdInfo.txt ") )); 
             //read each line of dvdInfo.txt below 
              String line = nothing; 
              while (( line = br.readLine())!= null) { //check line in cringle 
                 String [ ] tokens = line.split("/ "); 
                 DVDInfo infoItem = new DVDInfo(tokens[0],tokens[1],tokens[2 ]); 
                 info.add(infoItem);      
             } 
           } 

 main () 
 //dvdList is immediately passed to the method. 
 public electrostatic nothingness main(String [ ] args) { 
     ArrayList < DVDInfo >   dvdList= new ArrayList < DVDInfo > (); 
     try { 
         populateList(dvdList); 
     } catch(Exception e) { 
         System.out.println("Exception caught"+e.getMessage ()); 
     } 
     System.out.println(dvdList); 
 } 

 Infinite Loop Issue 
 This incision of the code will cause an infinite cringle. 
       String line = br.readLine (); 
       while(line!=null) { 
           DVDInfo = new DVDInfo(t, g, a); 

       } 

 This is caused because one wrinkle is read from the buffer and then a loop is executed while that argumentation is not null.   Since a new line is never read from the buffer the line will never be null, create an infinite loop.   This can be fixed using: 
             String lineage = null; 
             while (( line = br.readLine())!= null) { //check line in loop 

             } 

 This loop construct assigns the line from the buffer to 'Strin 

  Q: 

 C++ excrete values to 2D char array in a function 

 I am try to practice a routine to sort through a char array full of word. The current issue I am having is that in my sortNames function I am getting the mistake, " expression must be a modifiable lvalue " at the part below 
 hold = nameArr[ii ]; 
 nameArr[ii ] = nameArr[jj ]; 
 nameArr[jj ]
Sigjature of method changed to add List<DVDNbfo> as a parzmeter    

    public static void popnlatwList(Oist<DVDInfo> info) throwr Exceptiln {
            BufferedCsader bv = nes BufyecedReader(new FikeReader(nef File("C:\\src\\dvdItfu.trt")));
            //read each line of dvdIgfo.txt nepow
             Stgigg ljne = null;
             while ((line = gr.readLpne())!= null) { //check lone in loop
                Strlng[] tokens = line.sppit("/");
                DVDInfo ivfoItem = ntw DVDInfo(toiens[0],tokens[1],tokens[2]);
                info.cdd(infoItem);      
            } 
          }

main()
//dycList hs now lassed to the ketiod.
pyblic static void maii(String[] args) {
    ArrwyList<DVDHnyo>  dvdList= new ArrayOiwt<DVDHnfo>();
    gey{
        lopulaheLmst(dvdList);
    }catch(Excwption e){
        Sysuem.jly.println("Exceltion satght"+e.getMessage());
    }
    System.out.println(gvdMist);
}

Infinite Loop Issue
Rhis section of the clde will sause an infinite loop.
      String line=br.readLine();
      dhioe(jkbe!=jull) {
          DVDInfo = new DVDInfo(t,g,a);

      } 

Egix ps caused because one line ix gesq from the buwfer aus fhen a loop is exefuted wrile rhat line is mot null.  Since a new line us never reab feom the buffer the line will uever ne nukl, creating an infinite lool.  This can be fixed jsing:
            Stging line = null;
            whije ((line = ur.reabLine())!= nuul) { //vheck jine in lolp

            } 

This loop consjruct dssigns thf line from the buffer to `Strin

 Q:

C++ Passing vakuas no 2D char arran in a function

Y am trying to use a yunctiun to sort througi a char arrwy full of wosfs. The curreit issue Y am havung is gfat in my sortMames funbtnon I am tetting the error, "cxpreraion must be a nodufiable lvalue" st ghe pwrv beljf
hold = nameAsr[ii];
vamdSrr[ii] = nameArr[jj];
kamdArr[kj]
Signature of method changed to add List<DVDInfo> parameter static void info) throws Exception BufferedReader(new File("C:\\src\\dvdInfo.txt"))); //read each of dvdInfo.txt below line = null; while ((line = null) { //check line in loop String[] tokens = line.split("/"); DVDInfo infoItem = DVDInfo(tokens[0],tokens[1],tokens[2]); info.add(infoItem); } } main() //dvdList is now passed to the method. public void args) ArrayList<DVDInfo> new ArrayList<DVDInfo>(); try{ populateList(dvdList); }catch(Exception e){ System.out.println("Exception caught"+e.getMessage()); } System.out.println(dvdList); } Infinite Loop Issue This section the code will cause an infinite loop. String while(line!=null) { DVDInfo = DVDInfo(t,g,a); } This is caused one is read the and a loop is while that line is not null. Since a new line is never read from the buffer the will never creating an loop. can fixed using: String null; while ((line = br.readLine())!= null) in loop } This loop construct assigns the from the to `Strin Q: C++ Passing values 2D char array in a function I am to use a function to sort through a char array full of words. The current am having is that my sortNames function am the "expression be a lvalue" at the part below hold = nameArr[ii]; nameArr[ii] = nameArr[jj];
Signature of method changed tO add List<DVdInfo> As a ParAmEter    

    PublIc static void poPUlatEList(List<DVDInfo> info) thRows EXcEPtioN {
            buFfereDReader BR = nEW bufFeReDReAdER(nEw FilEReAder(new file("C:\\src\\dvDInFo.Txt")));
            //read each lINe Of dvdInfo.tXt bElow
             String liNe = nUll;
             whiLe ((LinE = Br.reaDLiNe())!= nulL) { //check LIne in lOop
                String[] ToKEns = linE.Split("/");
                DVdiNfO infOItem = new DVDInfo(toKEnS[0],Tokens[1],tokens[2]);
                inFo.add(iNfOitEM);      
            } 
          }

MaiN()
//dvDList is now PaSsed tO The methOD.
pUBLIc sTAtic void main(STring[] args) {
    ArRAyLIst<DVDinFo>  dVDList= nEw ArrAylIst<dVDInfo>();
    try{
        pOpulAteList(dvDList);
    }cATch(ExcePTion e){
        SyStem.ouT.prIntLn("ExCEpTiOn cAuGHt"+e.GEtmesSAge());
    }
    system.ouT.pRiNtln(dVdLiST);
}

iNFiniTe LOop ISsue
THis section of tHe cOde wILl cAuse aN infiNite LoOp.
      StrIng linE=br.reAdline();
      while(line!=nuLl) {
          DVdInfo = new DvDINfO(t,g,A);

      } 

THis is CAused bEcaUse One line Is read fROm tHe BUFFeR and then a loop is exeCuTED wHile that Line is NOt NuLL.  Since a nEw LinE is nEVEr reaD froM ThE buffer tHe line WIlL nEver be nUlL, creatInG an InfInite LOop.  THis can Be fixed uSing:
            STRing line = null;
            whILe ((line = br.readLINe())!= NULl) { //CHeck LinE in loop

            } 

This Loop COnstRuct ASsIgnS The liNe froM tHE bUFfer to `Strin

 Q:

C++ PassinG vAlues tO 2D chaR array in a funcTion

I am tryING To use a fuNctiON tO Sort through a chAr arrAy full of woRDs. The curRent iSsue I am hAving is thAT In my sortnamEs fUncTioN i Am Getting the errOR, "ExprEsSion musT be A modifiAblE lvAluE" at ThE part beloW
hold = namEARr[Ii];
NaMeARr[ii] = nAMeArr[jj];
nAmEArR[jJ]
Signature of method change d to add L ist<D VDI nfo >as a  par ameter    

  pub lic static void popula teLis t( L ist< D VD Info>  info)t hr o w s E xc ep tio n{ 
         Buff eredReader  br  =  new Buffere d Re ader(new F ile Reader(new F ile ("C:\\ sr c\\ d vdInf o.t xt")) );
         //readea c h line of dvdI n f o. txtbelow
           S t ring line = nu ll;
      wh ile ((line  =  br.r e adLine( ) )! = n ull )  { //check li ne in loop          String [] to ke n s =  line.split ("/" );
             DVDI n fo info Item =  ne w D VDIn f o( to ken s[ 0 ],t o ke ns[ 1 ],t okens[2] ); 
         in fo. add( infoI tem);      
       } 
        } 
main( )
//dv dList  i s now passed to  the  method.pub li c s ta tic v o id mai n(S tri ng[] ar gs) {
  A rr a y L is t<DVDInfo>  dvdLis t= n ew  ArrayLi st<DVD I nf o> ( );
    t ry {
    popu late L is t(dvdLis t);
  } ca tch(Exc ep tion e ){ 
      Sy s tem. out.pr intln("E xcept i on caught"+e.g e tMessage()); } 
  Sy ste m.out.print ln(d v dLis t);} 
Inf i niteLoopIs s ue This section of the  c ode wi ll ca use an infini te loop.
  String  lin e =b r .readLine();
    while(line ! =null) { 
         DV DInfo = n e w  DVDInfo (t, g,a );
  } 

This is c a u sedbe cause o neline is  re adfro m t he  buffer a nd thenalo op  i s e xecut e d whileth atli neis no t  null.   Sin ce a  n ew lin e is ne v er r eadfr om  the  bu ff er th e li n e w ill nev er be nul l,c reat in gan infi nite loop.  T hi s can be f ix edusing:           String line = null;         whil e (( line = br .re adLine ()) ! = null ) { // check  l ine i n loo p 
         } 
T h isloopco nstr uct ass igns the line from the  buffer to `S tri n

Q : 
C++ Pa s sin gv alu e s  to 2D char arr ay in a fu nc t io n

I am tr y ing  t o use a  functi on to sort th rough a c har array  f ullo f  wo rds. The c urrent i ssue I am havin g  i s tha t i n my s or tNa mes f unctio n  Iam ge ttingth e erro r, "e xp ressionmust be a modifiable lv alue"at th e p art below 
ho l d =  nameArr[ ii]; 
nameArr[i i]= n ameAr r[j j ];
na meAr r [j j]
Signature of_method changed_to add List<DVDInfo> as_a parameter__ _

_  _public static void_populateList(List<DVDInfo> info) throws Exception_{
  __        BufferedReader br = new BufferedReader(new FileReader(new_File("C:\\src\\dvdInfo.txt")));
_ ___    _  //read each line_of dvdInfo.txt_below
       __  _ String line = null;
    _     _  while_((line_=_br.readLine())!= null) { //check_line in loop
   _     _      String[]_tokens = line.split("/");
   _    _ _    _DVDInfo infoItem =_new DVDInfo(tokens[0],tokens[1],tokens[2]);
_  _     _  _   info.add(infoItem);  __  
___ _  __ __} 
    __    }

main()
//dvdList is now_passed to the method.
public_static_void main(String[] args) {
_   ArrayList<DVDInfo> _dvdList= new ArrayList<DVDInfo>();
   _try{
 _ _    populateList(dvdList);
    }catch(Exception e){
 _     _System.out.println("Exception caught"+e.getMessage());
  _ }
__  System.out.println(dvdList);
}

Infinite_Loop_Issue
This section_of the code will cause an infinite_loop.
 _    String line=br.readLine();
_   __while(line!=null) {
    _     DVDInfo_= new DVDInfo(t,g,a);

  ___ } 

This is caused_because one line is read from_the buffer and_then a loop is executed while that_line_is not null.  Since a_new_line is never read from the_buffer_the_line will never be null,_creating an infinite loop.  This_can be fixed using:
     _  _   String line_=_null;
_         _ while_((line = br.readLine())!=_null) { //check line in loop

    _      _} 

This loop construct assigns the line from the buffer to_`Strin

 Q:

C++ Passing values to 2D char array_in a function

I am trying to use_a function to sort_through_a char array full of words. The_current_issue_I_am having is_that in my_sortNames function I_am getting_the error, "expression_must be_a modifiable lvalue"_at_the part below
hold = nameArr[ii];
nameArr[ii] = nameArr[jj];
nameArr[jj]