can anyone help me with this?
. Given the Java String variable assignment
String sentence = "This is a sample sentence";
what will the following sequence of Java statements print? Explain why Java will print this result.
String x = sentence.substring(4, 10);
System.out.println(x);
thanks a lot!!!