From e30dcbe9e1c0fb2881d2a49ce010be4617003b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Wed, 25 Feb 2015 15:52:32 +0200 Subject: [PATCH] Added real world example for Singleton. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8a41534c1..d260cf8c4 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,9 @@ * managing a connection to a database * file manager +**Real world examples:** +* [java.lang.Runtime#getRuntime()](http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#getRuntime%28%29) + ## Adapter [↑](#list-of-design-patterns) **Intent:** Convert the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.