please help with method to build array from text
Hi can someone please help me im really new to java programming and im really confused on how to do this. I need to create a program where users can enter a new text and then display that text as an array and then allow them to find and replace something in that text.
THis is what i need to do for the first method and i am unsure how to begin this::
buildArrayFromText - This method should build and return an array of Strings where the contents should be all pieces of text separated by space characters. Note that if you find two space characters in a row in the text, then you should place an empty string at that index in the array. The same goes for the first and last entries in the array. If the first or last character is a space, an empty String should go in the array at that location.