Thanks for the advice DanBrown.
Unfortunately, I had to study all of last week for midterms, so I didn't have the full 2 weeks I needed to spend on this program. On top of this, I have a lot of...
Type: Posts; User: Kimimaru
Thanks for the advice DanBrown.
Unfortunately, I had to study all of last week for midterms, so I didn't have the full 2 weeks I needed to spend on this program. On top of this, I have a lot of...
Okay, left-justification is working fine! Now I need to include right-justification and centered text. My right-justfication code is as follows:
public static void Rformat(int winput, String...
This is what I came up with so far:
while(sinput2.hasMoreTokens())
{
String temp = sinput2.nextToken();
System.out.println(temp.length());
count += temp.length();
...
I tried: "count = sinput2.length();" and "count = sinput2.length;" and it says it cannot find the symbol of length. I've used length for arrays and normal strings and it worked; I'm not sure why it's...
Thanks for the feedback, but my problem was that I didn't know how to get the length of each token. What function can I use to do so?
Hello! I'm making a program that formats inputted text based on the line width the user inputs and the type of formatting the user chooses (left-justified, right-justified, centered). I'm not allowed...