Homework 09 - Collections and Generics

1. This week's learning summary

1.1 Summarize collections and generics in your preferred way (mind map or otherwise).
1.2 Optional: Collect code snippets you find useful

2. Written work

This homework set集合

1. Deletion of the specified element in the List (question set title)

1.1 Experiment summary. And answer: List at least 2 ways to remove elements in List.

2. Count the number of words in the text and sort by the number of occurrences (question set title)

2.1 Pseudo code (do not copy the code, otherwise points will be deducted)
2.2 Experiment summary

3. Inverted index (set of questions)

This problem is more difficult, it doesn't matter if you can't do it. But you must have your own thought process and submit results.
3.1 Take a screenshot of your code running results
3.2 Pseudo code (do not copy the code, otherwise points will be deducted)
3.3 Experiment summary

4.Stream and Lambda

Write a Student class with properties:

private Long id;
private String name;
private int age;
private Gender gender;//枚举类型
private boolean joinsACM; //是否参加过ACM比赛

Create a collection object, such as List

5. Generic class: GeneralStack

jmu-Java-05-集合GeneralStack
5.1 Code
5.2 of the ArrayListIntegerStackGeneralStack interface in the set

6. Optional: Generic Methods

Base reference file GenericMain , make modifications on this file.
6.1 Write the method max, which can return the maximum value of all elements in the List. The elements in the List must implement the Comparable interface. The max method must be written so that it String max = max(strList)can run successfully, where strList is the List<String>type. It can also make the Integer maxInt = max(intList);operation succeed, where intList is the List<Integer>type. Note: The Collections.max function must not be called directly.
6.2 Optional: the existing User class, its subclass is StuUser, and all implement the Comparable interface. Write the method max1, the basic functions are the same as 6.1, so that User user = max1(stuList); can run successfully, where stuList is List

7. Optional: Reverse Maximum Match Word Segmentation Algorithm

The 07th experiment (collection).doc file in the set experiment file , the topic in it 6.
7.1 Write out the pseudo code (do not copy the code directly)
7.2 Take a screenshot of your code running result.

3. Code cloud and PTA

Topic set:jmu-Java-05-集合

3.1. Code cloud code submission record

  • In the code cloud project, select "Statistics-Commits History-Set Time Period", then search and take a screenshot

3.2 Screenshot PTA Question Set Completion Chart

Two graphs are required (1. Rank graph. 2. PTA submission list graph)

3.3 Count the amount of code completed this week

The weekly code statistics need to be merged into one table.
Can your goal be achieved?

4. Assess your understanding of Java

Try to assess your understanding of Java from the following dimensions

dimension degree
grammar The PTA questions can be easily solved, and there is nothing difficult for me to deal with grammar problems.
Object Oriented Design Capabilities Proficiency in using object-oriented thinking to model the problem to be solved
Application Ability Some useful little tools can be written in Java
Lines of code so far 5000

Optional: 5. Use Java to solve practical problems

There are n courses, and each student has several questions about each course that they don't understand (each question is numbered). Teachers expect to categorize all students' questions, first by categorizing the questions by course, and then by grouping the same student's questions together in a certain category. The existing operation process is that each student sends the topics that they do not understand in each subject to the study committee according to the course classification number, and the study committee makes a unified summary. Now I want to write a program to help the study committee classify and count which topics in each course have the highest rate of comprehension. Try to write out the approximate steps to solve the problem? The content of the document that each student sends to the study committee should follow a certain standard to facilitate the processing of the program, and try to write the standard.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325129414&siteId=291194637
09