public static String copyright ( String holder , int startYear ) { Calendar cal = Calendar . getInstance ( ) ; int year = cal . get ( Calendar . YEAR ) ; return "&copy; " + holder + " " + startYear + "-" + year ; }
Generates a copyright string for the specified copyright holder from the specified first year to the current year .