0

Alignment in #Java

Can anyone please tell me how to align statements at left/right/center in java???

6th Oct 2021, 3:08 PM
(ā˜ž ą² _ą² )ā˜ž.ρrĪ‘Ļ„Ī—Ī±Īœ.
(ā˜ž ą² _ą² )ā˜ž.ρrĪ‘Ļ„Ī—Ī±Īœ. - avatar
5 Answers
+ 1
Learner_Pratham please post the code snippet and explain what you are trying to achieve.
6th Oct 2021, 3:43 PM
Sushil šŸ›”ļø
Sushil šŸ›”ļø - avatar
+ 1
Martin Taylor Thank You Mr. Taylor. I got it. 😃😃
6th Oct 2021, 4:55 PM
(ā˜ž ą² _ą² )ā˜ž.ρrĪ‘Ļ„Ī—Ī±Īœ.
(ā˜ž ą² _ą² )ā˜ž.ρrĪ‘Ļ„Ī—Ī±Īœ. - avatar
0
Use IDE to format the code. eclipse: select the code and press ctrl+shift+f IntelliJ: select the code and press ctrl+alt+l
6th Oct 2021, 3:15 PM
Sushil šŸ›”ļø
Sushil šŸ›”ļø - avatar
0
@Sushil Prasad Thank You! I have some doubts. Can you please elaborate the information. I mean, Is it not available on sololearn, or does it?? Secondly, you have told to use keyboard keys to format, but generally the formatting is done using special functions in codes. So, please add more information in your answer.
6th Oct 2021, 3:37 PM
(ā˜ž ą² _ą² )ā˜ž.ρrĪ‘Ļ„Ī—Ī±Īœ.
(ā˜ž ą² _ą² )ā˜ž.ρrĪ‘Ļ„Ī—Ī±Īœ. - avatar