Lessons Learned fifth week and the third week of the experiment report

Application third experiment String class

First, the purpose of the experiment

(1) using the master class String class;

(2) learn to use JDK help documentation;

Second, the experimental 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 appears ① statistics.

 

 

The number of neutrons ② string string "is" appears in the statistics.

 

 

The number of words in the string "is" appears ③ 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.

will not

 

 

 

 

 

 

 

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

 

 

Summary: super () and this () are required on the first line in the constructor, the experimental format for output is not clear, always wrong.

 

Guess you like

Origin www.cnblogs.com/duannaud/p/11599149.html