This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hascode.sample; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.ObjectInputStream; | |
| import java.io.ObjectOutputStream; | |
| import java.time.ZonedDateTime; | |
| public class Main { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.seibertmedia; | |
| import java.util.Map; | |
| import java.util.WeakHashMap; | |
| import java.util.concurrent.TimeUnit; | |
| public class WeakHashmapExample { | |
| public static void main(String[] args) throws InterruptedException { | |
| Map<Person, String> map = new WeakHashMap<Person, String>(); | |
| Person p1 = new Person("Jeff1"); |
OlderNewer