I have a question on how to make a text formatter using Java. I attempted in doing so, but got a really low score on it, and so I'm having to rely on someone kind enough to help me.
We use string tokenizers so that the word won't break off at the end? For Left, we leave it as is? For right, we subtract string.length with the width? I'm assuming to get center we get (width - user's sentence)/2 then place at beginning and end of the text
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.