char type calculation becomes unicode https://ja.wikipedia.org/wiki/Unicode%E4%B8%80%E8%A6%A7_0000-0FFF
Decimal numbers of int type are truncated Substituting to double type after calculation results in x.0
import Describe if you want to include subpackages import java.util.; import java.util.logging.;
Main exceptions ・ Division by zero -Access the number of elements that do not exist in the array ・ User input error -Specify a file that does not exist -DB connection failure -Incorrect value pointer reference
About ArrayList Since the amount of data is often unspecified in Java programs, ArrayList, which is a variable length array, is often used rather than a fixed length array.
File input If only the file name is specified, refer to directly under the project.
Scanner sin = new Scanner(new File("Sample.txt"));
Eclipse Garbled characters in Eclipse standard output Window> Settings> General> Workspace Set the text file encoding to UTF-8 (character code of the source code) Default utf-8 If you change it, eclipse will be in the process of verification, so wait until it finishes before executing it.
Add one line to this file as well (is it unnecessary?) eclipse.ini -Dfile.encoding=utf-8
Execute> Execute configuration> Common tab> Encode utf-8
When the editor comment is garbled Window> Settings> General> Appearance> Colors and Fonts Change the text font to something other than Consolas (such as MS Gothic)
When inputting as standard on the Eclipse console, a full-width numeric keypad will not be the original half-width, so an error may occur with Integer.parseInt etc.
The "this" keyword means "the object itself"
Right-click a variable, search for a reference by reference, and declare the same
About JSP tag library https://qiita.com/chenglin/items/16860d194eda96815c19 https://qiita.com/sculptcat/items/53d1a3a2d3b973354085
Calendar.MONTH starts from 0 https://qiita.com/Masa_Kado/items/9de05be15f6c20cf213b
Recommended Posts