how to comment a block of statements in java
For commenting a bunch of statements : Ctrl + Shift + /
how to comment a block of statements in java
For commenting a bunch of statements : Ctrl + Shift + /
comments in java
// single line comment example
// integer variable 'a' is assigned value 5
int a = 5;
/*
This is
an example for
java multiline comment
*/
// Documentation comments example
/**
* <h1>Area of Square</h1>
* Area of Square java program calculates area
* using given side value and prints the area.
* <p>
* <b>Note: Adding comments in a java program makes it more
* user friendly and is presumed as good quality code
*
* @author Sachin
* @version 1.0
* @since 2015-04-12
* </b>
* </p>
*/
Comment in Java
// This is how you comment in java
/* You can also do it like this */
comments java
// this is a comment
/* this is
a multiline
comment */
make a commet in java
// Demo types of comments
/* This shows
that the comment
can be muilti line */
System.out.println("Hello"); // Inline comment
// This is a single line comment
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us