Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio authored and Fabrizio committed Jan 28, 2017
1 parent d5268fb commit ba96053
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Singleton/src/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

public class Main {

public static void main(String[] args) {
Singleton instance1 = Singleton.getInstance();
Singleton instance2 = Singleton.getInstance();
if(!instance1.equals(instance2))
System.out.println("I'm not a singleton");
else
System.out.println("It's impossible,I'm a Singleton!");
}
}

0 comments on commit ba96053

Please sign in to comment.