This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
1. What does this question has to do with Android??
2. There are too many problems with your code. It will fail compilation at several locations. Even after correcting the errors, the logic doesn't seems right to me. I'm not even sure what exactly you are trying to achieve. How do you want to distribute the 1-D char array to a 2-D String array??
I ll explain my problem,
My Input is: "this is my first program"
then I have to split each word and to store on different string . It can be possible with 1D string array. suppose if i need to perform this on 2D string array,how to do? please let me know.
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...