package explore;

/*
 * Demonstrates some of Java's string API.
 * @author Michael Jenkin and Hamzeh Roumani
 * @version 0.1
 * @since Fall 2014
 */
public class App3
{
	public static void main(String[] args)
	{
		String city = "Toronto";
		String province = "Ontario";
		
		System.out.println("The number of characters in " + city +" = " + city.length());
		System.out.println("Concatenation yields: " + city + province);
		System.out.println("Extract a substring from 2nd until before the 5th: " + city.substring(2,5));
			
	}
}