Java tutorial for beginners: String
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// String = a reference data type that can store one or more characters
// reference data types have access to useful methods
String name = "Chin";
//boolean result = name.equalsIgnoreCase("Chin");
//int result = name.length();
//char result = name.charAt(2);
//int result = name.indexOf("i");
//boolean result = name.isEmpty();
//String result = name.toUpperCase();
//String result = name.toLowerCase();
//String result = name.trim(); //delete space
//String result = name.replace('i', 'n');
System.out.println(result);
}
}