Java String Access Methods – length charAt substring indexOf – Java Programming Tutorial – Appficial

These are String methods that are useful for accessing information about Strings

charAt (index) – the character at the specified index
length() – the number of characters in the String
isEmpty() – true if length is 0 or false otherwise
indexOf (item) – the index of the first item it finds, or -1 if not found
substring (startIndex, endIndex) – a substring from the starting index position to the end index

Please SUBSCRIBE to Appficial, and check out more Java Programming Tutorials!

Java if else Statements

Java Relational Operators

Java Multi-branch if-else-if Statement

Java Nested if-else Statements

Java Distinct If Statements

Java Logical Operators

Java Short Circuit Evaluation

Java Switch Statement

Java Precedence Rules for Logical and Relational Operators

Java Boolean Data Type

Java String Comparison Methods

String Access Methods

String Modifier Methods

The Conditional Expression

Floating-point Comparison

Character Comparison

System.out.printf() method

Displaying Currency in Java

Variable Scope


Xem thêm bài viết khác:

Article Categories:
Công Nghệ


  • Please SUBSCRIBE! More programming videos coming soon! ✌️

    Appficial July 23, 2020 4:07 pm Reply
  • Very good… I was looking for it…. but im trying to read all numbers of the beginning of all lines and save it in a array…. can u help me pls ? 😀

    Torva Messor July 23, 2020 4:07 pm Reply
  • What a fucking beast!

    Icmp Arp July 23, 2020 4:07 pm Reply
  • Why System.out.println(message.indexOf("prog")); is 12 not 2?

    BaZic Gaming July 23, 2020 4:07 pm Reply
  • informational and straight to the point! Thank you!

    Curly Cue July 23, 2020 4:07 pm Reply
  • Thank you!

    Mariela Raven July 23, 2020 4:07 pm Reply

Leave a Comment

Your email address will not be published. Required fields are marked *