Ask coding questions

← Back to all posts
Typewriter Effect
[deleted]

How do I have a typewriter effect in Java?

Answered by JBloves27 [earned 5 cycles]
View Answer
Comments
hotnewtop
JBloves27

You could do something like this:

However, it might lack a bit of consistency because you have to copy and paste that over and over.
Hope this helps!

[deleted]

@JBloves27 omg thanks

JBloves27

lol, np! @poetaetoes

codingjlu

Well, if you don't handle it, Java's gonna get mad at you for the unhandled InterruptedException exception. Here's a working TypeWriter effect in Java (a repl I created a while ago): https://replit.com/@codingjlu/Slow-Typer

Highwayman

I assume you mean how to wait in java.
https://www.google.com/?q=how%20to%20wait%20in%20java