prazannag Kumar wrote:suppose if i need to perform this on 2D string array,how to do?
This is exactly my question, how do you want to spread the words in a 2D string array?? You are saying that the input is "this is my first program", so now how do you want to spread it across a 2D string array?? Do you want 3 words in each row of the String array?? So basically the String array would become
Since converting char[] to String[][] is all you want, so I'm move this question to Beginning
Java forum...