PRJ302_-_FA_2024_-_PE_-_s_-_8_2881.webp
Minh Phúc2

PRJ302_-_FA_2024_-_PE_-_s_-_8_2881.webp

Zoom
(The Servlet is configured in web.xml) (0.5 point):
a. Check validate input str: If users enter str string that is empty or spaces string, show the error text "Input string is invalid!" to servlet. (1.0 point)
b. Execute:
- If users choose "Length of string" option, count the number of characters of the string str, then output the result to servlet. (0.5 point)
(Example: str= "Hello world" output: 11).
- If users choose "Vowel characters" option, count the number of characters that are vowels in string str, then output the result to servlet. (Vowels are defined as any letter 'a', 'e', 'i', 'o', 'u'. The count should be case-insensitive and exclude any non-alphabetic characters) (0.5 point)
(Example: str= "Hello world" output: 3).
100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRJ302
Thêm bởi
Minh Phúc2
Ngày thêm
Lượt xem
1,530
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ302_-_FA_2024_-_PE_-_s_-_8_2881.webp
File size
162.7 KB
Dimensions
1920px x 748px

Share this media

Back
Bên trên Bottom