//Singleton implementation, checks if there is an instance and if not, creates one public static NetCons getInstance() { if (instance == null) { instance = new NetCons(); } return(instance); }