String[] myStringArray = new String[3];
String[] myStringArray = {"a", "b", "c"};
String[] myStringArray = new String[]{"a", "b", "c"};
//store input string in an array with an length unknown
Scanner scanner = new Scanner(System.in);
String[] string = scanner.nextLine().split(" ");