/**
     * Combines two string array's into one.
     * 
     *  @param first The first strings
     *  @param second The second strings
     *  @return The result will be a new String[] with the first array items, 
     * with the second array items appended
     * 
     * 
     */
    private String[]  combineStringArrays(String[] first, String[] second)  {
       
   int total = first.length + second.length;
   String[]  strings = new  String[total];
            
   for (int i = 0; i < first.length; i++){
      strings[i] = first[i];
   }
            
   for (int i = 0; i < second.length; i++){
      strings[first.length + i] =  second[i];
   }
   return  strings;
}
 
No comments:
Post a Comment