Can I put closing barace in my program like this }}} at the end Please tell it is necessary or not to change line for brac | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can I put closing barace in my program like this }}} at the end Please tell it is necessary or not to change line for brac

class Program { public static void main(String[] args) { for(int i=1;i<=10;i++){ System.out.println("Java"); } } }

24th May 2021, 9:13 AM
Tanay Rastogi
Tanay Rastogi - avatar
3 Answers
+ 1
Can you tell us more firmly your question?
24th May 2021, 11:22 AM
Atul [Inactive]
0
What prevents you from trying it yourself, but what if it works out? 🤔
24th May 2021, 10:46 AM
Solo
Solo - avatar
0
Yes it is optional. If you like you can put.. It does not change your code
24th May 2021, 12:18 PM
yaser
yaser - avatar