What is the output of the following Java statements?

```
//String method examples
String str = "Java Programming!";
System.out.println(str.equals("Java Programming!"));
System.out.println(str.toLowerCase());
System.out.println(str.toUpperCase());
System.out.println(str.substring(5,8));
System.out.println(str.lastIndexOf("m"));
```

true
java programming!
JAVA PROGRAMMING!
Pro
12

Computer Science & Information Technology

You might also like to view...

What is the first DHCP message type sent out by a computer seeking an IP address from a DHCP server?

a. Request b. ACK c. Discover d. Offer

Computer Science & Information Technology

An item like the one in the accompanying figure is created from the information category outline.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology