What is the output of the given Java program?
public class MyClass
{
public static void main(String[] args)
{
String s = " Java Duke ";
int len = s.trim().length();
System.out.print(len);
}
}
Reveal answer
Fill a bubble to check yourself