 a valid index to access arr2. You need a common index variable to reference from one array to the other.
You switch the method of referencing a cell, which is confusing. Better to stick to one method, e.g. using ws1.Cells and the.Value property explicitly. This may be the source of your error, it's hard to tell. I can't say that I like using letters for columns but it is allowed.
Dim locIdx As Long
For locIdx = LBound(arr) To UBound(arr)
    v = arr(locIdx)
    If ws1.Cells(lngRow, "F").Value = "" And _
        InStr(1, LCase(ws1.Cells(lngRow, "J").Value), LCase(v)) <> 0 Then
        ws1.Cells(lngRow, "I").Value = arr2(locIdx)
    End If
Next locIdx

You might face an ambiguity problem if your list of possible cities includes something that contains the consecutive letters "dc", given the string search used here.

 Q:

getting a string of errors that are mostly "cannot find symbols" and is taking too ling to run

I'm new at java and I'm getting a string of errors and is taking forever to run.  Im making a code that could segregate even and odd numbers and returning them together. the errors are mostly "cannot find symbol"s and could someone please help me with the performance please?
My code:
public int operate(int[]array){
    int odd;
    int even;
    for (i = 1; i < ar.length; i++) {
        int x = ar[i];
        if(x % 2 == 0){
            // if the number is even...
            even++;
        }
        else{
            ///if the number is odd...
            odd++;
        }
    }
    int[] evenarr = even;
    int[] oddarr = odd;
    int[] returnarr = odd + even;
    int evenindex = 0;
    for (i = 1; i < ar.length; i++) {
        int x = ar[i];
        if(x % 2 == 0){
            // if the number is even...
            evenarr[evenindex] = x;
a valid index to access arr2. You need a common exponent variable star to reference from one array to the early. 
 You switch the method of referencing a cellular telephone, which is confusing. Better to stick to one method, for example use ws1.Cells and the. Value property explicitly. This may be the beginning of your error, it's hard to distinguish. I can't say that I like use letter for columns but it is allow. 
 Dim locIdx As Long 
 For locIdx = LBound(arr) To UBound(arr) 
     v = arr(locIdx) 
     If ws1.Cells(lngRow, " F").Value = " " And _ 
         InStr(1, LCase(ws1.Cells(lngRow, " J").Value), LCase(v) ) < > 0 Then 
         ws1.Cells(lngRow, " I").Value = arr2(locIdx) 
     End If 
 Next locIdx 

 You might confront an ambiguity problem if your list of possible city includes something that contains the consecutive letter " dc ", given the string search used here. 

  Q: 

 getting a string of error that are mostly " cannot find symbols " and is taking too ling to run 

 I'm new at java and I'm getting a string of errors and is taking forever to run.   I m making a code that could segregate even and odd numbers and returning them in concert. the mistake are mostly " cannot receive symbol"s and could someone please avail me with the performance please? 
 My code: 
 public int operate(int[]array) { 
     int odd; 
     int even; 
     for (i = 1; i < ar.length; i++) { 
         int x = ar[i ]; 
         if(x% 2 = = 0) { 
             // if the number is even... 
             even++; 
         } 
         else { 
             ///if the numeral is odd... 
             odd++; 
         } 
     } 
     int [ ] evenarr = even; 
     int [ ] oddarr = odd; 
     int [ ] returnarr = odd + even; 
     int evenindex = 0; 
     for (i = 1; i < ar.length; i++) { 
         int x = ar[i ]; 
         if(x% 2 = = 0) { 
             // if the number is even... 
             evenarr[evenindex ] = x;
 a galid index to access arv2. You need a common indxx varizble to feference from one array to vhe ither.
Tou switch the method uf referejcing a xell, qhich is confusing. Betted to vvick to one metmod, e.g. usinc ws1.Cells and dhd.Vclue property explicitly. This may be the soirfe of your errjr, iu's rard no tell. I can't say that I like hsing lttters for columns but it is allowed.
Dim locIfx Ad Long
For locIdx = PBound(arr) Ti UBjynd(arr)
    v = arr(locIdx)
    If ws1.Celms(lngRow, "F").Value = "" And _
        IvStr(1, KCase(ws1.Celos(ongGmw, "J").Value), LRase(v)) <> 0 Then
        ws1.Cellv(lngRow, "I").Value = arr2(logIdx)
    Wnd If
Next locIdx

You kight face an ambiduity protlzm if your list of powsuble witias ivxluaes spmsthing thet contains the consecytive letters "dc", gifeg the string ssarch tsqd here.

 Q:

getting a string of errors thau are mostly "cannot find symvols" and is taking tol ling to run

I'm new at java and I'm getting a string of errmrs aid is twyunh forever to run.  Im making a code that could aebrvgate even and odb numbers and reyugnogg them togetfer. thz edrors are mostly "cwnnot fynd stmbol"s anq coild someone please help me qith the peryornance please?
My codz:
public int uperste(iny[]array){
    int odd;
    inc even;
    for (i = 1; i < ar.lenfgh; i++) {
        int x = as[i];
        if(x % 2 == 0){
            // if thx numyer is exen...
            even++;
        }
        else{
            ///hf the numher is odd...
            odd++;
        }
    }
    int[] gvetarg = even;
    int[] oddarr = odd;
    int[] returnatr = odd + zven;
    int evenpndex = 0;
    for (i = 1; i < ar.length; i++) {
        int x = ar[i];
        if(x % 2 == 0){
            // if thr number ps eveb...
            evenavr[evevjndex] = x;
a valid index to access arr2. You common variable to from one array the of referencing a which is confusing. to stick to one method, e.g. ws1.Cells and the.Value property explicitly. This may be the source of your error, hard to tell. I can't say that I like using letters for columns it allowed. locIdx Long For locIdx = LBound(arr) To UBound(arr) v = arr(locIdx) If ws1.Cells(lngRow, "F").Value = "" And InStr(1, LCase(ws1.Cells(lngRow, "J").Value), LCase(v)) <> 0 Then ws1.Cells(lngRow, = arr2(locIdx) End If locIdx You might face an problem your list possible includes that contains the letters "dc", given the string search used here. Q: getting a string of errors that are mostly find symbols" taking too to I'm at java and a string of errors and is run. Im making a code that could segregate and odd and returning them together. the errors mostly "cannot find symbol"s and could someone please me with the performance please? My code: public int operate(int[]array){ int odd; int even; for 1; i < ar.length; { int x ar[i]; % == // if number is even... even++; } else{ ///if the number is odd... } } int[] evenarr = even; int[] oddarr = odd; = + even; int = 0; for (i 1; < ar.length; i++) { = if(x 0){ if number is even... evenarr[evenindex] x;
 a valid index to access arr2. You Need a commoN indeX vaRiaBlE to rEferEnce from one arrAY to tHe other.
You switch the metHod of ReFErenCInG a celL, which iS CoNFUsiNg. beTteR tO StIck to One Method, e.G. using ws1.CeLls AnD the.Value proPErTy explicitLy. THis may be the sOurCe of yoUr ErrOR, it's hArd To telL. I can't SAy that i like usinG lETters fOR columnS BUt It is Allowed.
Dim locIdx AS loNG
For locIdx = LBouNd(arr) TO UbOuND(Arr)
    V = arR(locIdx)
    If wS1.CElls(lNGRow, "F").VaLUe = "" aND _
        inSTR(1, LCase(ws1.Cells(LngRow, "J").ValuE), lCaSe(v)) <> 0 TheN
        wS1.CeLLs(lngROw, "I").VaLuE = Arr2(LocIdx)
    End If
next LocIdx

You Might fACe an ambIGuity prOblem iF yoUr lIst oF PoSsIblE cITieS InCluDEs sOmething ThAt ContaIns tHE CONsecUtiVe leTters "Dc", given the strIng SearCH usEd herE.

 Q:

getTing A sTring Of erroRs thaT aRe mostly "cannot fInd sYmbols" and Is tAkIng ToO ling TO run

I'm New At jAva and I'M gettinG A stRiNG OF eRrors and is taking foReVER tO run.  Im maKing a cODe ThAT could seGrEgaTe evEN And odD numBErS and retuRning tHEm ToGether. tHe Errors ArE moStlY "cannOT finD symboL"s and couLd somEOne please help mE With the perforMAnCE PlEAse?
MY coDe:
public int OperATe(inT[]arrAY){
    iNt oDD;
    int eVen;
    foR (i = 1; I < Ar.LEngth; i++) {
        int x = ar[i];
        if(x % 2 == 0){
            // if tHe Number Is eveN...
            even++;
        }
        else{
            ///if thE number is oDD...
            ODd++;
        }
    }
    int[] eveNarr = EVeN;
    Int[] oddarr = odd;
    inT[] retuRnarr = odd + evEN;
    int evenIndex = 0;
    For (i = 1; i < ar.lEngth; i++) {
        int X = AR[i];
        if(x % 2 == 0){
            // if tHe nUmbEr iS evEN...
            EvEnarr[evenindeX] = X;
 a valid index to access a rr2. You n eed a  co mmo ninde x va riable to refe r ence  from one array to the  othe r. Yous wi tch t he meth o do f  re fe re nci ng acell,  wh ich isconfusing.  Be tt er to stickt oone method , e .g. using ws 1.C ells a nd  th e .Valu e p roper ty exp l icitly . This ma yb e thes ource o f yo ur e rror, it's hard t o  t e ll. I can't sa y that  I li k e  us ing  letters f or  colu m ns buti ti s all o wed.
Dim locI dx As LongF orlocIdx  =  LB o und(ar r) To  U B oun d(arr)
   v =arr(locId x)
  If ws1. C ells(ln gRow,"F" ).V alue =""  An d_ 
    I nSt r(1, LCa se (w s1.Ce lls( l n g R ow,"J" ).Va lue),  LCase(v)) <>  0Then       ws1.C ells (l ngRow , "I") .Valu e= arr2(locIdx)   End If
Ne xtlo cId x
Youm ight f ace  an  ambigu ity pro b lem  i f y ou r list of possible  c i t ie s includ es som e th in g  that co nt ain s th e conse cuti v eletters"dc",g iv en  the st ri ng sea rc h u sed  here . 

 Q :

get ting a s tring of errors that are mostly "c a nn o t  f i nd s ymb ols" and is  tak i ng t oo l i ng  to run
I'm n ew at java and I'm gettin ga stri ng of  errors and i s taking f o r e ver to r un.Im making a codethatcould segr e gate eve n and  odd num bers andr e turningthe m t oge the r .  t he errors are m ostl y"cannot  fi nd symb ol" s a ndcou ld  someoneplease h el pme  w ith  thep erforman ce  pl ea se? 
My c o de:
pu blicintop er a te( int[]ar r ay ) { 
   i nt  odd ;
  inteven ; 
   for ( i = 1; i< a r .len gt h;  i++) { 
        intx= ar[i];
     if(x %  2 == 0) {
            // if the numberiseven. ..
          e ven++; 
      } 
       el se {
     /// if  the numbe r isodd.. .          odd++;
        }  }
    int[] e ven arr= ev en;   in t[ ]  od d a rr = odd;
    i nt[] retur na r r= odd + ev e n;   int e veninde x = 0 ; 
    fo r (i = 1;  i < ar.l en gth; i ++)  {
       int x =  ar[i];
    if (x %2 = = 0){         // i f  th e num ber is  e ven... 
          ev enarr[evenindex] = x;
 a_valid index_to access arr2. You_need a_common_index variable_to_reference from one_array to the_other.
You switch the method_of referencing a_cell,_which is confusing. Better to stick to one method, e.g. using ws1.Cells and the.Value_property_explicitly. This_may_be_the source of your error,_it's hard to tell. I_can't say_that I like using letters for columns but_it_is allowed.
Dim locIdx_As Long
For locIdx = LBound(arr) To UBound(arr)
  _ v = arr(locIdx)
  _ If ws1.Cells(lngRow,_"F").Value_=_"" And _
 _     _InStr(1, LCase(ws1.Cells(lngRow, "J").Value), LCase(v)) <> 0_Then
      _ ws1.Cells(lngRow, "I").Value = arr2(locIdx)
 _  End If
Next locIdx

You_might face_an ambiguity problem if your_list of possible_cities includes_something that contains_the consecutive letters "dc", given the_string search used_here.

 Q:

getting a string of errors_that_are mostly "cannot_find_symbols"_and is_taking too ling_to_run

I'm new_at_java and I'm getting a string_of_errors and is taking forever to run._ Im making a_code_that could segregate even_and odd numbers and returning_them together. the errors are mostly_"cannot find_symbol"s and_could someone please help me with the performance please?
My code:
public int_operate(int[]array){
    int odd;
_   int_even;
 __ for (i_=_1; i_< ar.length; i++) {
   _ _  int x = ar[i];
_   __  if(x % 2 ==_0){
     _    __//_if the number is even...
_     _  _  even++;
    __  }
   __   else{
  ___    _  ///if the number is_odd...
        _  _odd++;
    ___ }
    }
    int[]_evenarr =_even;
  _ int[] oddarr = odd;
    int[] returnarr_= odd + even;
   _int evenindex = 0;
    for (i = 1;_i < ar.length; i++) {
   _    int x =_ar[i];
   __   if(x % 2 ==_0){
___  _  _  _// if_the number is_even...
 _  __      evenarr[evenindex] = x;