A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/java/java-program-to-get-a-character-from-a-string/ below:

Java Program to Get a Character from a String

Java Program to Get a Character from a String

Last Updated : 29 Jul, 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


Output: F

Below are various ways to do so:



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4