[Java] Data type / string class cheat sheet

I wrote down the Java data type in my personal notes.

For the time being, at first

--String --int (integer) --double (number including decimal point)

Make sure to suppress these three. Data type / string class

type Model name Handleable range
Integer type int -Integer from 2147483648 to 2147483647
String class String "Java"、"myself"、"Mac"Multiple characters such as
Floating point type double ± 1.8 × 10308 ~ ± 3.4 × 10 -324 Finer numbers
Logical type boolean true (true) or false (false)Authenticity
Character type char "Ah" 、 "Rainbow"Single character string such as
Integer type short -32768 ~Integer up to 32767
Integer type long -Integer from 92223372036854775808 to 9223372036854775807
Integer type byte -Integer from 128 to 127
Floating point type float ± 3.4 × 1039 ~ ± 1.4 × 10 -45 fine numbers

Recommended Posts

[Java] Data type / string class cheat sheet
Java cheat sheet
Java date data type conversion (Date, Calendar, String)
[Java] Data type ①-Basic type
Java class type field
About Java String class
Java learning memo (data type)
Java inflexible String class substring
Java Stream API cheat sheet
C # cheat sheet for Java engineers
Various methods of Java String class
Competitive programming private cheat sheet (Java)
[Java] Data type / matrix product (AOJ ⑧ Matrix product)
javac, jar, java command cheat sheet
java (use class type for field)
[Java] Correct comparison of String type
Java string
Regarding String type equivalence comparison in Java
Use PostgreSQL data type (jsonb) from Java
[Personal memo] Java data type is annoying
Notes on operators using Java ~ String type ~
[Java] Convert Object type null to String type
[Java] Comparison of String type character strings
Java 8 LocalDateTime type conversion stuff (String, java.util.Date)
Type conversion from java BigDecimal type to String type
Java type conversion
[Java] Class inheritance
java Scanner class
[JAVA] Stream type
Java HashMap class
JMeter cheat sheet
[Java] String padding
[Java] Enumeration type
Java Optional type
java (abstract class)
[Processing x Java] Data type and object-oriented programming
[Java] Nested class
Java anonymous class
Java double type
Java string processing
About Java class
String class methods
Organized memo in the head (Java --Data type)
Java type conversion (String, int, Date, Calendar, etc.)
Kotlin cheat sheet
[java] abstract class
[Java] Object class
Split string (Java)
Java local class
[Docker cheat sheet]
Java variable declaration, initialization, data type (cast and promotion)
About Java basic data types and reference type memory
[Java] Handling of character strings (String class and StringBuilder class)
Mockito + PowerMock cheat sheet
About class division (Java)
About Java StringBuilder class
Eclipse Collections cheat sheet
[Java] About Singleton Class
Rails Tutorial cheat sheet
Uri → String, String → Uri type conversion
Java string multiple replacement