/* * cnt.java * * Created on December 10, 2008, 4:39 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package graph; /** * * @author suchenek */ //Copyright Dr. Marek A. Suchenek, 2005, 2006, 2007, 2008 public class cnt { private static int n = 0; public static void incr() { n++; } public static void decr() { n--; } public static void clr() { n=0; } public static int get() { return n; } public static void out() { System.out.print(n); } public static void out(String pref) { System.out.print(pref + n); } public static void out(String pref, String suf) { System.out.print(pref + n + suf); } public static void outln() { System.out.println(n); } public static void outln(String pref) { System.out.println(pref + n); } public static void outln(String pref, String suf) { System.out.println(pref + n + suf); } }