java Repeating words
Go to solution
Solved by minibois,
12 minutes ago, AntiHero said:probably cause i just started learning this and dont know any better, hence me asking everyone here.
Sorry if my reply sounded irritated, it was a genuine question (the code struck me as odd, with the question you wrote down).
The kind of format you need to use is something like this:
// ask for input and save that // Print the input as uppercase // Print it as lower case // Print the original input
You basically got all the necessary code in your original post, just gotta work with it a little different.
(so you ask for input, print input.toUpperCase(), print input.toLowerCase() and print input itself).
EDIT: P.S. scan.NextLine = asking for input
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now