java string charat method example

w‮w‬w.lautturi.com
java string charat method example
String.charat(index)

Returns the char value at the specified index.

/**
 * @author lautturi.com
 * Java example: java string charat method example
 */

import java.util.*;

public class Lautturi {

	public static void main(String[] args) {

		String str = "Lautturi java world";
		
		char ch = str.charAt(9);
		
		System.out.println("char:"+ch);
	}
}
Created Time:2017-09-12 23:11:52  Author:lautturi