1 package com.array.jun; 2 3 public class Singletion { 4 5 private static String test = "This is a singletion!"; 6 7 private Singletion(){} 8 9 public static void Test(){ 10 System.out.println(test); 11 } 12 13 public static void main(String[] args) { 14 // TODO Auto-generated method stub 15 Singletion.Test(); 16 } 17 18 }