
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// conversion
		String s = new String(String.valueOf(19));
		System.out.println(s);
		
		String s1 = "Ishika";
		byte[] arr = s1.getBytes(); // gives ASCII values for all chars in the string
		for(byte b: arr)
			System.out.print(b + ",");
		System.out.println();
		
		// advance methods
		String s2 = new String("Hello");
		String s3 = s2; // s2 and s3 points to string in heap memory
		String s4 = s2.intern(); // s4 will point to string literal created in string pool
		System.out.println(s2 == s3);
		System.out.println(s2 == s4);
		
		String name = "Ishi";
		int age = 26;
		System.out.println(String.format("Hello %s, your age is %s", name, age));
	}
}