Construct one program that completes the following 5 String exercises: a. Return theindex(position) of the first occurrence
Fantastic news! We've Found the answer you've been seeking!
Question:
Construct one program that completes the following 5 String exercises:
a. Return the index (position) of the first occurrence of "e" in the following string:
String txt = "Hello Everybody";
b. Use the correct method to print the length of the txt
String txt = "Hello";
c. Convert the value of txt to upper case.
String txt = "Hello";
d. Use the correct operator to concatenate two strings:
String firstName = "Mary "; String lastName = "Doe";
e. Return the index(position) of the first occurrence of "e" in the following string:
String txt = "Hello Everybody";
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date: