Exit 98-388 Introduction to Programming Using Java
Question 1 of 5
0% complete
Q1 Hotspot

HOTSPOT

You are writing a Java program.

The program must meet the following requirements:

Truncate firstName to its first five characters
Set output to a string that contains the firstName and the number of characters in firstName

How should you complete the code? To answer, select the appropriate code segments in the answer area.

NOTE: Each correct selection is worth one point.

Select the correct area(s) on the image.

Question diagram
Previous Next