Adds an ellipsis to the end of a string, generally indicating that this string leads to another choice (like a dialog) - Java java.lang

Java examples for java.lang:String Compress

Description

Adds an ellipsis to the end of a string, generally indicating that this string leads to another choice (like a dialog)

Demo Code

/**/*from   w  ww  .  ja  v  a 2  s  . co m*/
 * Copyright (c) 2005-2006 Aptana, Inc.
 *
 * 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. If redistributing this code,
 * this entire header must remain intact.
 */
//package com.java2s;

public class Main {
    /**
     * Adds an ellipsis to the end of a string, generally indicating that this string leads to another choice (like a
     * dialog)
     * 
     * @param message
     * @return The ellipsif-ied string
     */
    public static String ellipsify(String message) {
        return message + "..."; //$NON-NLS-1$
    }
}

Related Tutorials