Java String Ellipse ellipsis(final String text, int length)

Here you can find the source of ellipsis(final String text, int length)

Description

ellipsis

License

Open Source License

Declaration

public static String ellipsis(final String text, int length) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String ellipsis(final String text, int length) {
        if (text.length() <= length)
            return text;
        return text.substring(0, length - 3) + "...";
    }// www .  j a  v a  2s  .c o m
}

Related

  1. ellipseCircum(double a, double b)
  2. ellipseCircumference(double a, double b)
  3. ellipseString(StringBuilder builder, int maxLength)
  4. ellipsify(String message)
  5. ellipsis(final String text, final int length)
  6. ellipsis(String string, int length)
  7. ellipsis(String text, int max)
  8. ellipsis(String text, int maxLength)
  9. ellipsisString(String string, int len)