Experiment 3 & 5 summary

Teacher: lijin2019, TA: CNR If you submit a job
application third experiment String class

Purpose
using master class String class;
learn to use JDK help files;
experiment content
1. Known string: "this is a test of java " required to do the following requirements :( source code, the results screenshot).

The number of letters in the string s occurs statistics.
The string neutron count the number of times the string "is" appears.
The number of words in the string "is" appears in the statistics.
Achieve reverse the string is output.
2. Write a program, using the following algorithm to encrypt or decrypt the English string input by the user. It requires source code, the results screenshot.

3. Given the string "ddejidsEFALDFfnef2357 3ed". The output string in the number of capital letters, lowercase letters count, the number of non-English letters.

The first question:



the second question:

the third question

Summary: This week's topic is not very roommates will do most of the students and ask them to complete together

Guess you like

Origin www.cnblogs.com/xiaomouren/p/11600739.html