About 2,260,000 results
Open links in new tab
  1. java - Find Positions of a Character in a String - Stack Overflow

    Jan 12, 2017 · How can I find a character in a String and print the position of character all over the string? For example, I want to find positions of 'o' in this string : "you are awesome honey" and get …

  2. Replace a character at a specific index in a String in Java

    Jul 11, 2025 · 2. Using StringBuilder Unlike String Class, the StringBuilder class is used to represent a mutable string of characters and has a predefined method for change a character at a specific index …

  3. Java String charAt () Method - W3Schools

    Definition and Usage The charAt() method returns the character at the specified index in a string. The index of the first character is 0, the second character is 1, and so on.

  4. String (Java Platform SE 8 ) - Oracle

    Stringは、補助文字をサロゲート・ペアで表現するUTF-16形式の文字列を表します (詳細は、Characterクラスの「Unicode文字表現」セクションを参照)。 charコード単位を参照するインデッ …

  5. Java Character At Position: A Complete Guide - CodingTechRoom

    Learn how to retrieve characters at specific positions in a string using Java. Step-by-step guide with practical examples and expert tips.

  6. Reverse a String in Java - GeeksforGeeks

    Oct 14, 2025 · In Java, reversing a string means rearranging its characters from last to first. It’s a common programming task used in algorithms, data processing, and interviews. There are several …

  7. Java Program to Get a Character from a String - GeeksforGeeks

    Jul 29, 2024 · Given a String str, the task is to get a specific character from that String at a specific index. Examples: Input: str = "Geeks", index = 2 Output: e Input: str = "GeeksForGeeks", index = 5 …

  8. Java String indexOf () - Find Character Index | Vultr Docs

    Dec 17, 2024 · The indexOf() method in Java is a powerful tool used to find the position of a specific character or substring within a string. This function returns the index within the calling String object of …

  9. java character position in a string - Stack Overflow

    The program will then show what character is at that position in the string. Example: lets say they enter "string" and then 2 for the number, the program will display the character "r".

  10. Searching For Characters and Substring in a String in Java

    Jul 23, 2025 · Efficient String manipulation is very important in Java programming especially when working with text-based data. In this article, we will explore essential methods like indexOf (), …