I hereby claim:
- I am smhjamalii on github.
- I am jamali (https://keybase.io/jamali) on keybase.
- I have a public key ASCEg8LBpZVAzChsyCDyeb1JnyIdosx3CRsKaQBq4GtnOAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| public class ArrayUtils { | |
| public static Object[] flatten(Object[] array){ | |
| Object[] flattenedArray = new Object[0]; | |
| for(int i = 0; i < array.length; i++){ | |
| if(array[i] instanceof Object[]){ | |
| flattenedArray = addAll(flattenedArray, flatten((Object[]) array[i])); | |
| } else { | |
| flattenedArray = add(flattenedArray, array[i]); | |
| } |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.io.UnsupportedEncodingException; | |
| import java.net.HttpCookie; | |
| import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import java.net.URLEncoder; | |
| import java.util.Date; | |
| import java.util.List; |