Java tutorial
//package com.java2s; /******************************************************************************* * Copyright (c) 2007, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ public class Main { public static final String[] pageExtensions = { "htm", "shtml", "html", "xhtml" }; public static String getPageExtensionList() { StringBuffer buf = new StringBuffer(); for (int i = 0; i < pageExtensions.length; ++i) { buf.append('.'); buf.append(pageExtensions[i]); if (i != pageExtensions.length - 1) { buf.append(", "); //$NON-NLS-1$ } } return buf.toString(); } }