Back
Close

Computing with Data

elgeish
35.2K views

Strings

public class HelloWorld {
public static void main(final String[] args) {
final String greeting = "Hello";
System.out.println(greeting);
System.out.println(greeting.charAt(2));
System.out.println(greeting.equals("Hello"));
System.out.println(greeting.substring(0, 3) + "p");
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants