[Java] Memo on how to write the source

I learned a new word today. The word [coding convention]. Of course, I think there are subtle differences depending on the site. There was a beauty rule in the clean sauce ☆

It's hard to get it right away, but ... seniors say "Make a check sheet and check it." I made an Excel sheet separately from this memo.

So, memo memo.

■ {[Space] in front of (wave brackets)

■, [Space] behind (comma)

■ [Space] before and after =, +, <,>,

■ In the if statement, else and else if ... Continue with a space after the closing parenthesis of if}

  if(int i = 0; i < a.length; i++) {
  } else {

■ Pay attention to the indent (check what the paragraph is like)

Recommended Posts

[Java] Memo on how to write the source
How to write java comments
[Java] How to get the URL of the transition source
How to write Scala from the perspective of Java
Studying Java # 6 (How to write blocks)
[Java] How to update Java on Windows
Rails on Tiles (how to write)
How to write Java variable declaration
How to switch Java in the OpenJDK era on Mac
How to check Java installed on Mac
[Java] How to use the File class
[Java] How to use the hasNext function
[Java] How to use the HashMap class
[Java] How to use the toString () method
Studying how to use the constructor (java)
[Processing × Java] How to use the loop
[Java] How to output and write files!
How to switch Java versions on Mac
[Java] How to set the Date time to 00:00:00
[Java] How to get the current directory
How to change the timezone on Ubuntu
[Processing × Java] How to use the class
How to install the legacy version [Java]
[Processing × Java] How to use the function
[Java] How to use the Calendar class
[Java] How to use Thread.sleep to pause the program
Java Development Basics ~ How to Write Programs * Exercise 1 ~
[Java] How to retrieve the parameters passed from html on the server side
How to write dockerfile
[Java] (for MacOS) How to set the classpath
How to write docker-compose
How to write Mockito
[Docker] How to build when the source code is bind-mounted on the container
How to use the replace () method (Java Silver)
How to write migrationfile
[Java] How to get the authority of the folder
How to write Java String # getBytes in Kotlin?
Notes on how to write comments in English
[Java] How to omit the private constructor in Lombok
[Ruby on Rails] How to write enum in Japanese
[Java] Types of comments and how to write them
How to use java non-standard library on IntelliJ IDEA
java: How to write a generic type list [Note]
[Java] How to extract the file name from the path
[Ruby on Rails] How to change the column name
[Java] How to get the maximum value of HashMap
Source used to get the redirect source URL in Java
[Android Studio] [Java] How to fix the screen vertically
As of April 2018 How to get Java 8 on Mac
How to generate / verify ID token in Java Memo
How to run Java EE Tutial on github on Eclipse
Install MySQL 5.6 on CentOS6 [How to specify the version]
How to write modern Java. Immutable Java, consider Null safety.
Notes on how to use regular expressions in Java
[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
How to use java Optional
Bit Tetris (how to write)