Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to add comments in java

//This is single line comment  

/* 
This is  
multi line comment 
*/  
Comment

java comments

//Single line
System.out.println("Hello world"/*+"This is code commented out inline."*/); //You can also put comments at the end
/*
Multi
Line
comment
*/
Comment

Comment in Java

// This is how you comment in java
/* You can also do it like this */
Comment

Java Comments

// declare and initialize two variables
int a =1;
int b = 3;

// print the output
System.out.println("This is output");
Comment

Commenting in Java

//Single Line

/* Multi Line
Comments 
! */

//Comments cannot be runned
/*This can be
runned */

System.out.println("Hello, World");
Comment

Java Comments

//The normal single line comment

/*
The normal multi-line comment
*/
Comment

comments java

// this is a comment

/* this is 
   a multiline
   comment */
Comment

Java Comment

        //This is a comment that does not show
/*I am a multi-lined comment that does 
not show either*/
  System.out.print("This is text");
Comment

PREVIOUS NEXT
Code Example
Java :: different constructiors in java and what they do explained 
Java :: binary tree traversal 
Java :: switch in java 
Java :: positive numbers in array 
Java :: can abstract class have non abstract methods in java 
Java :: how to get a set from a map in java 
Java :: java servlet life cycle 
Java :: new int[] java 
Java :: add string to array java 
Java :: math.pow(x2-x1,2) 
Java :: run jar file with different jre 
Java :: matrix dimensions 
Java :: arraylist sort 
Java :: string cannot be resolved to a type eclipse 
Java :: mcq java 
Java :: Java TestNG Data Provider example 
Java :: how does plus works in Java 
Java :: log.d() andriod 
Java :: edit text on 2sec change andropid 
Java :: HOW TO MAKE ENUM START WITH ONE 
Java :: how to create a sublist in java 
Java :: What is builder tool 
Java :: what is java.io example 
Java :: android java convert boolean to string 
Java :: Java TestNG Data Provider 
Java :: cfgbcfdxv 
Java :: java nom de la methode actuel 
Java :: Java @FunctionalInterface annotation 
Java :: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type project and qualifiers [@Default] 
Java :: java code to implement hybrid interface 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =