Tuesday, March 8, 2022

Java a snippet to with one command line reproduce 100 times the same work

Java a snippet to with one command line reproduce 100 times the same work
I used the for to replicate the same command line for each film of that list, personally, I prefer the while, isn't something new but some people don't know how to use a counter to make a command line be repeatedly redone, sometimes we learn some commands taught of not pretentious advantages some people conclude that the use is limited to count when the command could be to redo something as many time is need.
So tell me isn't an advantage I put the titles of my movies in an Array? Being an object inside an Array I could with only one command line present all the titles of movies that I have because I gonna put the index of the Array in the counter to a code of repetition present all the objects that I create. Rute Bezerra de Menezes Gondim 
Ps.: People see the class, of the CursoEmVideo, because there the professor taught how to make the Java present what is inside of the object and not his address of memory, the class is in Portuguese, but the youtube let the translation to English.


 

No comments:

Post a Comment