PRO192_-_PE03_-_FA_2024_3202.webp
Sơn Tùng1

PRO192_-_PE03_-_FA_2024_3202.webp

are equal to the string str2 (not case sensitive).
7 of 7 Paper No: 1
getLastWord(str: String): String - return the last word in the string str with the first letter in uppercase
The program output might look something like this:
1. Test countWords()
1. Test countWords()
2. Test getLastWord()
2. Test getLastWord()
Enter TC(1 or 2):1
Enter TC(1 or 2):2
Enter the string str1:hello world hello world
Enter a string:hello world
Enter the string str2: HeLLo
OUTPUT:
OUTPUT:
2
World
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Sơn Tùng1
Ngày thêm
Lượt xem
2,383
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_PE03_-_FA_2024_3202.webp
File size
144.2 KB
Dimensions
1920px x 990px

Share this media

Back
Bên trên Bottom