Advertisement
Exception_Prototype

Untitled

Sep 9th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. public class Example {
  2.  
  3.     private static Example ourInstance = new Example();
  4.  
  5.     public static Example getInstance() {
  6.         return ourInstance;
  7.     }
  8.  
  9.     private Example() {
  10.     }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement