Help me in solving STRJ5V2 problem

My issue

Print the characters

o and

r from the string




word in separate lines using the syntax defined above

My code

class Codechef
{
	public static void main (String[] args)
	{
		String word = "Programming";
        // Update your code below this line
        System.out.print(word.charAt(0));
       //  System.out.printn(word.charAt(1));
        

	}
}

Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone

@mohdarshadkhan
U have to do it like this.

class Codechef
{
	public static void main (String[] args)
	{
		String word = "Programming";
        System.out.println(word.charAt(2));
        System.out.print(word.charAt(1));
	}
}