String word = "adventure";
System.out.println(word.length());
System.out.println(word.indexOf("vent"));
System.out.println(word.indexOf("z"));
Determine the exact output.
String word = "keyboard";
String first = word.substring(0, 3);
String ending = word.substring(5);
System.out.println(first + ending);
Determine the result of each comparison as negative, zero, or positive. a. "cat".compareTo("dog") b. "java".compareTo("java") c. "sun".compareTo("moon")