Job 09-Collections and generics Java

Source: Internet
Author: User

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

2. Written work

Collection of this homework question set

1. Deletion of the specified element in list (title of topic) 1.1 Experimental summary. and answer: List at least 2 ways to delete elements in the list. Use the Line.split method to separate a row of elements, and remove the same element using the Remove in list. Method One: Use the list's remove (note the value of Get (i) here)

public static void remove(List<String> list, String str) { for(int i=0;i<list.size();i++) { if(list.get(i).equals(str)) { list.remove(str); i--; } } }

Method Two: Remove with iterators (this method is used for reference)

public static void remove(List<String> list, String str) { for(int i=0;i<list.size();i++) { if(list.get(i).equals(str)) { list.remove(str); i--; } } }

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

2.1 pseudocode (Do not copy code, otherwise deduct)
2.2 Experimental Summary

    1. 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 pseudocode (Do not copy code, otherwise deduct)
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

    1. Generic class: Generalstack

The Generalstack of jmu-java-05-collection of title set
5.1 Code for Generalstack interface
5.2 What are the benefits of generics compared to arraylistintegerstack in previous assignments?

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?

    1. Assess how much you understand Java

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

Job 09-Collections and generics Java

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.