201621123054 Java programming Nineth Week of study summary

Source: Internet
Author: User
Tags comparable set time

1. This week study summary 1.1 summarizes the set and generic related content in the way you like (mind map or other).

1.2 Choose to do: Collect code snippets that you think are useful 2. Written work

Collection of this homework question set

# #1. The deletion of the specified element in list (topic set) 1.1 Experimental summary. and answer: List at least 2 ways to delete elements in the list. 2. Statistics the number of words in the text and sorted by the number of occurrences (title set title) 2.1 Pseudo-code (not copied code, otherwise deducted) 2.2 Experimental summary 3. Inverted index (title)

The subject is more difficult, do not come out does not matter. But must have own thinking process, must have the submission result.

3.1 Your code runs the result 3.2 pseudo-code (not copied code, otherwise deducted) 3.3 Experimental summary 4. Stream and Lambda

Write a student class that has the following properties:

Private Long ID;
private String name;
private int age;
Private Gender gender;//enum type
Private Boolean JOINSACM; Have you participated in the ACM contest?
Creates a collection object, such as a list

4.1 Write a search method using the traditional method List4.2 use the stream () in Java8, filter (), collect () to write the code with the same 4.1, and test (to show the test data). When building a test collection, in addition to the normal student object, add some null to the collection, and the method you write should handle the null instead of throwing an exception. (: The school number appears) 5. Generic type: Generalstack

The Generalstack of jmu-java-05-collection of title set

The code 5.2 for the 5.1 Generalstack interface illustrates the benefits of generics compared to arraylistintegerstack in previous jobs 6. Optional: Generic method

The base reference file is Genericmain and is modified on this file.

6.1 Write Method Max, which returns the maximum value of all elements in the list. The elements in the list must implement the comparable interface. The Max method you write should make string max = Max (strlist) run successfully, where Strlist is List6.2: The existing user class, whose subclasses are Stuuser, and both implement the comparable interface. Writing method Max1, the basic ability of the same 6.1, so that user user = Max1 (stulist), can run successfully, where Stulist is List6.3 selected: Write int mycompare (t O1, T O2, Comparator C) method, The method can compare two user objects, or compare two Stuuser objects, and the incoming comparer C can be Comparator7. Selection: Inverse maximal matching segmentation algorithm

Set the No. 07 Experiment (collection) in the experiment file. doc file, inside the topic 6.

7.1 Write pseudo-code (not directly copied code) 7.2 Your code runs the result. 3. Code Cloud and PTA

Topic Set: jmu-java-05-Collection

3.1. Code Cloud codes Submission record

In the Code cloud Project, select statistics-commits history-set time period, and then search for and

3.2 PTA Problem set complete situation diagram

Two graphs are required (1. Ranking chart. 2.PTA Submission list diagram)

3.3 Count the amount of code completed this week

The weekly code statistics need to be fused into a single table.
Can you achieve your goals?

4. Assess how much you understand Java

Try to evaluate how much you understand Java from the following dimensions

Degree of dimension
Grammar PTA Topic has been able to easily take care of, there is nothing difficult to pour my grammar problems
Object-oriented design capability can skillfully use object-oriented thinking to model the problem to be solved
Application capabilities You can use Java to write some useful gadgets
Number of lines of code so far 5000

201621123054 Java programming Nineth Week of study summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.