PRO192_-_PE05_-_SP_2024_1529.webp
N

PRO192_-_PE05_-_SP_2024_1529.webp

<<interface>>
Actionable
+ countWords(value:String):int
+ getFirstWord(value:String):String
Write a class named Helpers, which implements the Actionable interface. The class Helpers implements all methods in Actionable as below:
+countWords(value:String):int-return the number of words in a string.
6 of 6
Paper No: 1
+getFirstWord(value: String):String-return the first word in the string with the first letter in uppercase
The program output might look something like this:
Enter a string:iphone 15 pro max
Enter a string:iphone 15 pro max
1.Test countWords()
Zoom

+ 90%

1.Test countWords()
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Noelle2000
Ngày thêm
Lượt xem
3,276
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_PE05_-_SP_2024_1529.webp
File size
113.6 KB
Dimensions
941px x 772px

Share this media

Back
Bên trên Bottom