merges the two separate arrays into one (user_up + user_down = stoppages)  
      int stoppages[] = new int[user_stops.user_up.length+user_stops.user_down.length];
      System.arraycopy(user_stops.user_up, 0, stoppages,0, user_stops.user_up.length);
      System.arraycopy(user_stops.user_down, 0, stoppages, user_stops.user_up.length, user_stops.user_down.length);

      int c = 0;

      do {
            System.out.println("The lift has come to stop at floor " + stoppages[c]);
          System.out.println("The lift has started moving again."); 
          c++;
      } while (c < stoppages.length);

      do {
            System.out.println("This lift has stopped moving forever.");
      } while (c!=stoppages.length);
   }
   }

The above method calls this method:
import java.util.*;
public class user_stops {
//user_up array declaration 
public static int user_up[] = new int [6];{

//Initialising data in array     
user_up[0] = 1;
user_up[1] = 3;

user_up[2] = 2;
user_up[3] = 7;

user_up[4] = 5;
user_up[5] = 8;
}

//user_down array declaration   
public static int user_down[] = new int [6];{

//user_down data initialisation
user_down[0] = 8;
user_down[1] = 5;

user_down[2] = 4;
user_down[3] = 2;

user_down[4] = 6;
user_down[5] = 1;

}

}

A:

I want the program to start in main, and call the method that sorts all of the floors and such. However, when I run the program it changes all of the values of the final array into 0's.

The code
merges the two separate arrays into one (user_up + user_down = stoppages)  
       int stop [ ] = newfangled int[user_stops.user_up.length+user_stops.user_down.length ]; 
       System.arraycopy(user_stops.user_up, 0, stoppages,0, user_stops.user_up.length); 
       System.arraycopy(user_stops.user_down, 0, stoppages, user_stops.user_up.length, user_stops.user_down.length); 

       int c = 0; 

       do { 
             System.out.println("The lift has issue forth to stop at floor " + stoppages[c ]); 
           System.out.println("The lift has begin move again. "); 
           c++; 
       } while (c < stoppages.length); 

       do { 
             System.out.println("This aerodynamic lift has stopped moving constantly. "); 
       } while (c!=stoppages.length); 
    } 
    } 

 The above method calls this method acting: 
 import java.util. *; 
 public class user_stops { 
 //user_up array declaration 
 public static int user_up [ ] = new int [ 6 ]; { 

 //Initialising data in array     
 user_up[0 ] = 1; 
 user_up[1 ] = 3; 

 user_up[2 ] = 2; 
 user_up[3 ] = 7; 

 user_up[4 ] = 5; 
 user_up[5 ] = 8; 
 } 

 //user_down array declaration   
 public static int user_down [ ] = new int [ 6 ]; { 

 //user_down datum initialisation 
 user_down[0 ] = 8; 
 user_down[1 ] = 5; 

 user_down[2 ] = 4; 
 user_down[3 ] = 2; 

 user_down[4 ] = 6; 
 user_down[5 ] = 1; 

 } 

 } 

 A: 

 I want the broadcast to start in main, and bid the method that screen all of the floors and such. However, when I run the program it changes all of the values of the concluding array into 0's. 

 The code
merhes the two separate arrxys into one (usgr_yp + usxr_down = stoppagds)  
      int stoppages[] = new ibt[usee_stops.user_up.length+user_rtops.user_fown.lengrh];
      System.acdaycopy(mfer_sflps.uvxr_up, 0, stoppages,0, user_stops.gser_up.length);
      Dystem.arraycopy(user_stops.user_down, 0, seoppagex, kser_stops.user_uk.lenguh, tser_anoks.user_down.length);

      int c = 0;

      do {
            Sysyem.out.println("The lift has fome to stop at floor " + stoppages[x]);
          System.uut.println("Uhz lift has atarted moving again."); 
          z++;
      } while (c < wtookages.length);

      qo {
            Systek.out.primtln("This lift mas svoppwd moving forever.");
      } while (c!=stoppagef.length);
   }
   }

The above methoe xalls thiv megyod:
kmpkrv jzva.utip.*;
puulic class hser_stops {
//uwer_up array declarauiog 
public statid int tsqr_up[] = new int [6];{

//Initialising data in arraj     
user_up[0] = 1;
user_up[1] = 3;

user_up[2] = 2;
user_up[3] = 7;

user_up[4] = 5;
usgr_up[5] = 8;
}

//user_qown array declaration   
public static int user_dofn[] = nxw inu [6];{

//mfde_dlwn data initialisation
user_down[0] = 8;
user_down[1] = 5;

usqd_dpwk[2] = 4;
user_down[3] = 2;

usev_down[4] = 6;
user_down[5] = 1;

}

}

A:

O aamj the program jo starc ih main, and call thf methoq thar sorts ajl og the floors and such. Howevwr, when I ruu tye program it chanyes all of tke valoes of the final array into 0's.

Che cose
merges the two separate arrays into one user_down stoppages) int = new int[user_stops.user_up.length+user_stops.user_down.length]; 0, user_stops.user_up.length, user_stops.user_down.length); int = 0; do System.out.println("The lift has come to stop floor " + stoppages[c]); System.out.println("The lift has started moving again."); c++; } while < stoppages.length); do { System.out.println("This lift has stopped moving forever."); } while (c!=stoppages.length); } above calls method: import java.util.*; public class user_stops { //user_up array declaration public static int user_up[] = new [6];{ //Initialising data in array user_up[0] = 1; = 3; user_up[2] = user_up[3] = 7; user_up[4] = user_up[5] 8; } array public int user_down[] = int [6];{ //user_down data initialisation user_down[0] = 8; user_down[1] = 5; user_down[2] = 4; user_down[3] = 2; = 6; 1; } A: want program to start and call the method that sorts floors and such. However, when I run the it changes of the values of the final into 0's. The code
merges the two separate arrayS into one (usEr_up + uSer_DowN = sToppAges)  
      Int stoppages[] = neW Int[uSer_stops.user_up.length+usEr_stoPs.USer_dOWn.LengtH];
      System.ARrAYCopY(uSeR_stOpS.UsEr_up, 0, sTopPages,0, usEr_stops.useR_up.LeNgth);
      System.arRAyCopy(user_stOps.User_down, 0, stopPagEs, user_StOps.USer_up.LenGth, usEr_stopS.User_doWn.length);

      iNt C = 0;

      Do {
            SystEM.out.priNTLn("the lIft has come to stop aT FlOOr " + stoppages[c]);
          SyStem.ouT.pRInTLN("ThE liFt has startEd MovinG Again."); 
          c++;
      } wHIlE (C < STopPAges.length);

      do {
            SYstem.out.priNTln("this liFt Has STopped MovinG fORevEr.");
      } while (c!=stoPpagEs.length);
   }
   }

THe abovE Method cALls this Method:
ImpOrt Java.UTiL.*;
pUblIc CLasS UsEr_sTOps {
//User_up arRaY dEclarAtioN 
PUBLic sTatIc inT user_Up[] = new int [6];{

//InitiAliSing DAta In arrAy     
useR_up[0] = 1;
uSeR_up[1] = 3;

usEr_up[2] = 2;
usEr_up[3] = 7;

uSeR_up[4] = 5;
user_up[5] = 8;
}

//user_doWn arRay declarAtiOn   
PubLiC statIC int usEr_dOwn[] = New int [6];{

//uSer_down DAta InITIAlIsation
user_down[0] = 8;
useR_dOWN[1] = 5;

uSer_down[2] = 4;
uSer_dowN[3] = 2;

UsEr_DOwn[4] = 6;
user_dOwN[5] = 1;

}

}

A:

I Want THE progRam tO StArt in maiN, and caLL tHe Method tHaT sorts AlL of The FloorS And sUch. HowEver, when i run tHE program it chanGEs all of the valUEs OF ThE FinaL arRay into 0's.

The Code
merges the two separate ar rays intoone ( use r_u p+ us er_d own = stoppage s )        int stoppages[]= new  i n t[us e r_ stops .user_u p .l e n gth +u se r_s to p s. user_ dow n.lengt h];
     Sys te m.arraycopy( u se r_stops.us er_ up, 0, stopp age s,0, u se r_s t ops.u ser _up.l ength) ; 
     System.a rr a ycopy( u ser_sto p s .u ser_ down, 0, stoppage s ,u ser_stops.user _up.le ng t h, u ser _st ops.user_d ow n.len g th);

 i ntc  = 0;

     do {
         Syst em .ou t .print ln("T he lif t has cometo s top at fl oor "+  stoppa g es[c]); 
        S yste m .o ut .pr in t ln( " Th e l i fthas star te dmovin g ag a i n . ");
        c ++;
      } w hil e (c < s toppa ges.l engt h) ;

     do  {
          System. out. println(" Thi slif thas s t oppedmov ing  foreve r.");
   } w h il e (c!=stoppages.le ng t h ); 
   }
  }

Th e  a bo v e method  c all s th i s  meth od:i mp ort java .util. * ;pu blic cl as s user _s top s { 
//us e r_up  array  declara tionpublic statici nt user_up[]=  n e w  i n t [6 ];{ 

//Initial isin g  dat a in ar ray     user_ up [ 0] = 1;
user_up[1] = 3 ;
user_ up[2]  = 2;
user_up [3] = 7;
u s e r_up[4]= 5; us e r_up[5] = 8;
} 

//u ser_down a r ray decl arati on   
pu blic stat i c  int use r_d own []= n e w  i nt [6];{

//u s e r_do wn  data i nit ialisat ion 
us er_ dow n[ 0] = 8;
u ser_down [1 ]=5; 

u ser_d o wn[2] =4; 
us er _do wn[3] = 2;
user_ down [4 ]=  6; 
user_d o wn [ 5 ] =1; 
}

} 

A :
I wa nt t h e p rogramto startinm ain,  a nd  call t he method tha tsorts allof  th e floo r s  and suc h. However, when I runt he prog ram  it c hang es all of  th e valu eso f thefinalarray  i nto 0 's.
T h ecod e
merges the_two separate_arrays into one (user_up_+ user_down_=_stoppages) _
_  _  int_stoppages[] = new int[user_stops.user_up.length+user_stops.user_down.length];
_  __ System.arraycopy(user_stops.user_up, 0, stoppages,0, user_stops.user_up.length);
      System.arraycopy(user_stops.user_down, 0, stoppages, user_stops.user_up.length,_user_stops.user_down.length);

_ ___ int c = 0;

_    _do {
_       __  System.out.println("The_lift has come to stop at floor " +_stoppages[c]);
     _  __System.out.println("The_lift has started moving_again."); 
    _     c++;
_     } while_(c < stoppages.length);

   _  do {
 _ _    _  _System.out.println("This lift_has stopped moving_forever.");
     _} while (c!=stoppages.length);
_  }
   }

The_above_method calls this_method:
import_java.util.*;
public_class user_stops_{
//user_up array declaration_
public_static int_user_up[]_= new int [6];{

//Initialising data in_array_    
user_up[0] = 1;
user_up[1]_= 3;

user_up[2] = 2;
user_up[3]_=_7;

user_up[4] = 5;
user_up[5] =_8;
}

//user_down array declaration  _
public static int user_down[] = new_int [6];{

//user_down_data initialisation
user_down[0]_= 8;
user_down[1] = 5;

user_down[2] = 4;
user_down[3] = 2;

user_down[4] = 6;
user_down[5] =_1;

}

}

A:

I want the program to start_in main, and call_the method_that_sorts all of_the_floors and_such. However, when I run the program_it changes_all of the values of the_final array into 0's.

The_code