Beginner Java Project: Reverse a String

preview_player
Показать описание
SUBSCRIBE TO MY MAIN CHANNEL - ChandlerKnowsBest:

DONATE TO MY PATREON:

Social Media:

Equipment:

Feel free to make/upload a response video! I’d love to see what my fans think. 

Want to collaborate? Shoot me an email!
Рекомендации по теме
Комментарии
Автор

Can you explain the oop please? Thank you

hamsal_khaldi
Автор

love your videos they help me a lot
can you do a video on loops and arrays
thanks

ay
Автор

Yes I would love for you to explain to me more clearly

milanacampbell
Автор

This is how you can do it using StringBuilder:

String userInput;
Scanner scanner = new Scanner(System.in);
System.out.println("Enter a word:");
userInput = scanner.nextLine();

StringBuilder builder = new StringBuilder();
builder.append(userInput);
builder = builder.reverse();
System.out.println(builder);

kingamaciejczyk
Автор

Have you considered JavaScript instead of Java? Javascript is not only the seed, but the root, the nucleus, the foundation of the branches.

andso