[Java] When writing the source ... A memorandum of understanding ①

▼ Think carefully about whether variable declarations should be inside or outside the loop ⇒ The shorter the scope, the shorter the processing time of the machine.

▼ Be careful where you say the same thing    int i = a + b;    int sum += i;

           ⇒ int sum += a+b;

Let's summarize the parts that say the same thing!

▼ Think carefully about whether or not it should be an array ⇒ Only when it is necessary to specify "○ th" etc. later and take it out

▼ Variables used for iterative processing

 ▼

Recommended Posts

[Java] When writing the source ... A memorandum of understanding ①
Memorandum of understanding when Spring Boot 1.5.10 → Spring Boot 2.0.0
A memorandum of the FizzBuzz problem
A summary of what Java programmers find when reading Kotlin source for the first time
The story of writing Java in Emacs
Things to be aware of when writing Java
What surprised the Java shop when writing PHP
Measure the size of a folder in Java
A story confirming the implementation of the SendGrid Java library when mail delivery fails
[Java] How to get the URL of the transition source
A survey of the Kubernetes native Java framework Quarkus
[Java] Beginner's understanding of Servlet-②
[Java] Beginner's understanding of Servlet-①
Memorandum of understanding about LOD.
[Java] Tips for writing source
When reading the source code
A memorandum of the environment variable "JAVA_HOME" path setting procedure
A quick explanation of the five types of static in Java
Specify the character code of the source when building with Maven
Things to be aware of when writing code in Java
About the behavior when doing a file map with java
A memorandum to reach the itchy place for Java Gold
Reintroduction to Java for Humanities 0: Understanding the Act of Programming
Aiming for a basic understanding of the flow of recursive processing
Think of a Java update strategy
[Java] Delete the elements of List
A memorandum for writing beautiful code
Switch the version of java installed by SDKMAN when moving directories
Created a menu program
[Java] When writing the source ... A memorandum of understanding ①
Precautions when generating a table with a composite key with Iciql + SQLite
A note when examining Javalin
To write a user-oriented program (1)
Making a minute repeater part.2
Making a minute repeater part.1
[Java version] The story of serialization
I read the source of ArrayList I read
A person writing C ++ tried writing Java
Sort a List of Java objects
I read the source of Integer
A story about hitting the League Of Legends API with JAVA
Get the public URL of a private Flickr file in Java
A memorandum of personal phpenv install
The point of addiction when performing basic authentication with Java URLConnection
A brief description of JAVA dependencies
I read the source of Short
Let's create a TODO application in Java 5 Switch the display of TODO
I read the source of Byte
Step-by-step understanding of Java exception handling
How to check for the contents of a java fixed-length string
I read the source of String
The origin of Java lambda expressions
Investigation method when the CPU of the server running java is heavy
A little understanding of lambda expressions
Basic structure of Java source code
A nice workaround when "having an instance of either of the two classes"
A memo when you want to clear the time part of the calendar
Dynamically increase the number of elements in a Java 2D array (multidimensional array)
A collection of phrases that impresses the "different feeling" of Java and JavaScript
The story of forgetting to close a file in Java and failing
The story of making a game launcher with automatic loading function [Java]
Let's express the result of analyzing Java bytecode with a class diagram
[Java small story] Monitor when a value is added to the List
[Java] How to get to the front of a specific string using the String class
How to find the total number of pages when paging in Java
Sample program that returns the hash value of a file in Java
How to get the absolute path of a directory running in Java