Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static String[] unisciArray(final String[] array1, final String[] array2){
- int i = 0;
- int dimensioneTotale = array1.length+array2.length;
- String[] arrayFinale = new String[dimensioneTotale];
- for(int n = i; n<array1.length; n++){
- arrayFinale[n] = array1[n];
- i++;
- }
- for(int n = i; n<arrayFinale.length; n++){
- arrayFinale[n] = array2[n-array1.length];
- i++;
- }
- return arrayFinale;
- }
- public static String[] eliminaNull(String[] arrayDaModificare){
- String[] tempArray = null;
- for(String stringa : arrayDaModificare){
- if(stringa != null){
- String[] temp2Array = {stringa};
- if (tempArray == null){
- tempArray = temp2Array;
- }
- else{
- tempArray = unisciArray(tempArray, temp2Array);
- }
- }
- }
- return tempArray;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement