public class Main
{
public static int lineLengthIncrease (int lineLength, int newWord, int width)
{
if ( lineLength == 0) // Adding the new word, but no space added as the first...
Type: Posts; User: tamtimtom
public class Main
{
public static int lineLengthIncrease (int lineLength, int newWord, int width)
{
if ( lineLength == 0) // Adding the new word, but no space added as the first...
Bump, please can anybody help?
UPDATE:
I REALLY need help with this, I have been tearing my hair out for days now. :(
So far, I have managed to get the top 4 lines working perfectly, but I cannot get the last line to work...
Thank you both so much! I shall have another crack today!
Makes so much more sense to split the words individually and determine how many will go on each line. I worry how my head functions...
Hey everyone!
So, I have been given a piece of work to do for College that requires me to format user input. For example:
This is an example of text that will have straight left and right...