How to write java comments

I don't have much time today, so just how to write a comment I will write it lightly.

Comment out only one line

A comment with only one line can be written as follows.

Only one line


// (Comment content)

Comment out multiple lines

The part surrounded by / * ~ * / is a comment. "/ " Means the start of the comment and " /" means the end of the comment.

Multiple lines


/*
Comment content
*/

Recommended Posts

How to write java comments
How to write Java variable declaration
[Java] Types of comments and how to write them
How to write Rails
[Introduction to Java] How to write a Java program
[Java] How to output and write files!
How to write dockerfile
How to write docker-compose
How to write Mockito
How to write migrationfile
Java Development Basics ~ How to Write Programs * Exercise 1 ~
[Java] Memo on how to write the source
How to write Java String # getBytes in Kotlin?
Notes on how to write comments in English
[Java] How to use Map
How to lower java version
[Java] How to use Map
How to uninstall Java 8 (Mac)
How to write good code
Java --How to make JTable
How to use java Optional
Bit Tetris (how to write)
How to minimize Java images
[Refactoring] How to write routing
How to use java class
[Java] How to use Optional ②
[Java] How to use removeAll ()
[Java] How to display Wingdings
Great poor (how to write)
[Java] How to use string.format
[Note] How to write Dockerfile/docker-compose.yml
How to use Java Map
How to set Java constants
How to write Junit 5 organized
How to write Rails validation
How to write Rails seed
How to use Java variables
[Ruby] How to write blocks
How to convert Java radix
How to write Rails routing
[Java] How to implement multithreading
[Java] How to use Optional ①
How to initialize Java array
How to write Scala from the perspective of Java
java: How to write a generic type list [Note]
How to write modern Java. Immutable Java, consider Null safety.
How to study Java Silver SE 8
How to use Java HttpClient (Get)
[Rails] How to write in Japanese
[Java] How to update Java on Windows
How to disassemble Java class files
[Java] How to use join method
How to learn JAVA in 7 days
Baseball ball count (how to write)
[Processing × Java] How to use variables
[Java] How to create a folder
How to write a ternary operator
How to decompile java class files
[Java] How to use LinkedHashMap class
Rails on Tiles (how to write)
[Rails] How to write exception handling?