Explain comments in java | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Explain comments in java

Hi Can you guys write an explain comment for my code line by line or in the lines have new idea ? I wrote my code but i want a professional explain comments for it to have more reach knowledge It’s 2 code to run 1 program so i will give you the link for them and please write comments about each line what do I already write my comments but i want more Codes: https://code.sololearn.com/cdt1sxk8Wq0j/?ref=app https://code.sololearn.com/c5oq2ZrMxg1K/?ref=app Run it on a compiler to have the right output.

14th Dec 2021, 1:24 PM
STOP
STOP - avatar
1 ответ
0
That's not rocket science. You should comment only the necessary. You don't need comments like "created object". You could have a comment to explain F_31 class porpuse or just rename the class for something that is meaningful. Just use comments to explain parts of code that is just impossible to guess why the code is there and please don't abuse. Remember, something is wrong when you have a class or a function with to many comments.
16th Dec 2021, 2:20 PM
Anya
Anya - avatar