MapTest java 核心编程
2021-03-22 07:26
标签:override str 核心编程 oop out des 编程 删除 ring 类似c++map 发现确实完成了元素的删除和替换 MapTest java 核心编程 标签:override str 核心编程 oop out des 编程 删除 ring 原文地址:https://www.cnblogs.com/eat-too-much/p/13887654.html简介
code
/*
* @Author: your name
* @Date: 2020-10-27 21:15:06
* @LastEditTime: 2020-10-27 21:19:36
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /java/Employee.java
*/
public class Employee implements Comparable
/*
* @Author: your name
* @Date: 2020-10-27 21:08:20
* @LastEditTime: 2020-10-27 21:18:24
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /java/MapTest.java
*/
import java.util.*;
public class MapTest {
public static void main(String[] args) {
Map
result
{157-62-7935=[name=Gary Cooper], 144-25-5464=[name=Amy Lee], 456-62-5527=[name=Frrancesca Curz], 567-24-2546=[name=Harry Hacker]}
[name=Gary Cooper]
key=157-62-7935, value=[name=Gary Cooper]
key=144-25-5464, value=[name=Amy Lee]
key=456-62-5527, value=[name=Francesca Miller]
上一篇:使用循环判断数组元素是否对称