1. Timer
Timer task: TimerTask
Timer: Timer
void schedule(TimerTask task, Date time)
//安排在指定的时间执行指定的任务。
2. Data structure
A way to organize and manage data
3. Custom container
Requirements: Create a container that can store any number of data types, any number of data, and can be automatically expanded
1. The bottom layer is based on an array:
The overall idea: given a method to add data-"define a certain array length-"determine whether the data exceeds the current given array length-"define a new array for expansion -" update between the old array and the new array-"re" Write tostring-"optimize the code, optimize the length of the initial array
2. The bottom layer is based on a linked list
The overall idea: given a method of adding data-"define a node class (two static attributes, data attributes and the next node address attribute)-"initial value assignment-"determine whether it is the first node-"for not Connect the first node-"find the last node-"connect the new node