Skip to content

Instantly share code, notes, and snippets.

View NathanWA's full-sized avatar

Nathan NathanWA

View GitHub Profile
@NathanWA
NathanWA / ArrayFlattener.java
Created June 29, 2019 20:53
Flattening a string array
public class ArrayFlattener {
/**
*
* @param array containing objects of type String and/or array
* @return
*/
public static String [] flattenArray(Object [] array)
{
ArrayList<String> result = new ArrayList<String>();