M
M
MakarMS2020-05-10 01:05:39
Java
MakarMS, 2020-05-10 01:05:39

How to display the process of loop iterations?

Hey! A thought popped into my head. Is it possible to display the process of loop iterations in the console? Those. if for is executed 10 times and the final number is 10, then how to make it so that the console would have 1,2,3,4,5,6,7,8,9,10 and the numbers would not just line up, but one replaced another. And you can set the speed of changing numbers yourself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2020-05-10
@MakarMS

The idea is similar to the console progress bar, ideas and packages can be found here https://stackoverflow.com/questions/852665/command...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question