+ 5

Java printing System

in java when you print something it's like: L1)first print L2)second print L3)third print . . . But if we want to print vise versa like below: . . . L3)third print L2)second print L1)first print what should we do?

7th Jan 2018, 5:52 AM
Mehdi
Mehdi - avatar
5 Antworten
+ 17
then write statement to print L3 first or take all those lines in an String array & then reverse all the elements of that array & print them
7th Jan 2018, 6:08 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 6
Then make your third print your first print?a sample code might help
7th Jan 2018, 5:54 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 3
@Brains no in norm printing when you print values you need to scroll up to reach the first printed value like below: first print second print third print fourth print . . . but how we can print values to achieve that when you scroll down to reach first printed value like below: ninty ninth print ninty eighth print . . . . fifth print fourth print thirth print second print fisrt print i meant when you print something it go in top of last printed values
7th Jan 2018, 6:12 AM
Mehdi
Mehdi - avatar
+ 3
@gaurav @deepak you don't just use System printing in arrays or lists. need something more general
7th Jan 2018, 6:17 AM
Mehdi
Mehdi - avatar