0

How to use escape sequence in java to create multi line output with a single line code

18th Oct 2019, 10:20 PM
D I V I N E
D I V I N E - avatar
3 ответов
+ 1
Dude u can use" \n" and "\t " for multi line output with a single input ...Store the inputs in a Arr and then prints its element one by one...like char arr[]="Hello World" The print statemant will be like --(arr[0]+"\n"+arr[1])... U got it right??
18th Oct 2019, 10:27 PM
SilentxKnight
SilentxKnight - avatar
0
More emphasis need if possible with a given example
18th Oct 2019, 10:39 PM
D I V I N E
D I V I N E - avatar
18th Oct 2019, 10:52 PM
SilentxKnight
SilentxKnight - avatar