This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package stringarrayflattenexample | |
/** | |
* @author Jesse Jones | |
*/ | |
class StringArrayFlattenExample { | |
fun main(args:Array<String>) { | |
//Setup demo data | |
val inputArray = arrayOf<Any>(arrayOf<Any>("One", "Two", arrayOf<Any>("Three")), arrayOf<Any>("Four", arrayOf<Any>("Five", arrayOf<Any>("Six")), "Seven")) | |
//Flatten Array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package stringarrayflattenexample; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* @author Jesse Jones | |
*/ | |
public class StringArrayFlattenExample { |