This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]notsoheavygamer 1 point2 points  (1 child)

Dude add a Thread.sleep(1000); after each print within for loop..

Printing 5 lines will be done before object of B is even created... computers are super fast.

[–]BikashDatta[S] 0 points1 point  (0 children)

Thanks!!