Java memo (standard class) length

Java standard class simple memo Method to count the number of characters  【length】    How to use: Variable = String Variable.length ();

//ex)

public static void main(String[] args){
//Store ABCDEFGHI in String variable word
String word = "ABCDEFGHI";
  
//Pull the length of the number of characters to the int variable countWord
int countWord = word.length();

//Show int variable
System.out.println(countWord);

//Direct display
System.out.println(word.length());
}

Recommended Posts

Java memo (standard class) length
Java memo (standard class) substring
Java learning memo (abstract class)
Java memo
[Java] Memo for naming class names
java anything memo
Java class methods
[Java] Class inheritance
java Scanner class
Java Silver memo
Java HashMap class
java, maven memo
java (abstract class)
Java standard logger
[Java] Nested class
Java SE 7 memo
Java anonymous class
java anything memo 2
About Java class
[java] abstract class
[Java] Object class
Java local class
Java specification memo
Java pattern memo
About class division (Java)
About Java StringBuilder class
Java development environment memo
java standard functional interface
[Java] About Singleton Class
java basic knowledge memo
Java learning memo (method)
Java Kuche Day memo
[Java ~ Method ~] Study memo (5)
java se 8 programmer Ⅰ memo
Java paid private memo
Java inner class review
Java class type field
Java programming (class method)
[Java ~ Array ~] Study memo 4
Java learning memo (basic)
java lambda expression memo
About Java String class
(Memo) Java for statement
Java lambda expression [memo]
Java learning memo (interface)
Java programming (class structure)
[Java] Implicit inheritance memo
Java learning memo (inheritance)
java competitive programming memo
[Memo] Java Linked List
About java abstract class
[Java] Integer wrapper class reference
Java (WebSphere Application Server) memo [1]
[Java] Variable name naming memo
Java learning memo (data type)
Java inflexible String class substring
Java Silver Study Method Memo
[Implementation] Java Process class notes
[Self-use memo] (Ruby) class, class instance, instance
About Java class loader types
[Java ~ Boolean value ~] Study memo (2)