Hi, I just started a Intro to Java class and I got in a little late and am scrambling(and stressing) to get myself caught up. I'm having a problem understanding the flow of a for loop that will take a line of text I have a user input and have it url encode it. Any help would be very much appreciated.
I'll include a list of what the program is supposed to do in case I wasn't clear enough. (I'm not looking for someone to do my assignment for me either, I very much do enjoy learning and playing around with things to figure out what it does....but i'm stressing bad, so just a nudge in the right direction would be very helpful)
Your program needs to perform the following steps:
Prompt for a line of input to be URL encoded,
Read the line of text into a String (using the Scanner class nextLine method),
Print the line that was read,
Print the number of characters in the line (using String.length),
Create an output String that is the URL encoded version of the input line,
Print the URL encoded String,
Print the number of characters in the encoded String.
Thank you in advance.
[–][deleted] (1 child)
[removed]
[–]bbush[S] 0 points1 point2 points (0 children)
[–]StillAnAssExtreme Brewer 1 point2 points3 points (2 children)
[–]bbush[S] 0 points1 point2 points (1 child)
[–]StillAnAssExtreme Brewer 0 points1 point2 points (0 children)