How many comments in java




















Previous Variables in Java. Next Operators in Java. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most popular in Java. Most visited in School Programming. We use cookies to ensure you have the best browsing experience on our website. Throughout COMP , you will always be expected to write documentation comments for all code that you write and it will be a part of your grade for each project!

You will see the benefits of doing so immediately, as Eclipse will use your comments to make your life easier. It is highly recommended that you comment all auto-generated fields and methods such as those created by your GUI-creating tool, e. Doing so will enable Eclipse to show you what every variable is used for plus will greatly enhance your or someone else's ability to understand the code later. Comp will not require this however due to the tedium involved.

In general however, the benefits will outweigh the effort of the extra work. Commenting everything is the right thing to do. This can be very useful in making sure that all code is properly documented! Because of this adherence to the old HTML standard, by default, Javadoc will throw a " self-closing element not allowed " warning whenever an HTML 5 formatted void element tag is encountered. To stop Javadoc from throwing this warning, invoke Javadoc with the following command line parameter:.

This will suppress the HTML "lint" style checker. It is unclear, unfortunately, from the Javadoc documentation what other style checks are also suppressed with this option. The problem is that if you want to share them with other people, you need a web server. NullPointerException at countcomment. My intention was to show you the mistake in your code, if you want a code that handles all cases I think that you still got, a lot more cases to manage.

Add a comment. Put your folder and cloc in same place and open cmd type this command cloc- version no. Koko Kondeti Koko Kondeti 1.

Please add explanation to your answer. BufferedReader; import java. File; import java. FileNotFoundException; import java. FileReader; import java. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta.

Now live: A fully responsive profile. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.



0コメント

  • 1000 / 1000