Java StringJoiner Usage generateDeleteCommand(int deleteDisplayIndex)

Here you can find the source of generateDeleteCommand(int deleteDisplayIndex)

Description

Generates a delete command at the given displayed index.

License

Open Source License

Declaration

public static String generateDeleteCommand(int deleteDisplayIndex) 

Method Source Code


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

import java.util.StringJoiner;

public class Main {
    /**//from   w w w .  j av a2  s  .  com
     * Generates a delete command at the given displayed index.
     */
    public static String generateDeleteCommand(int deleteDisplayIndex) {
        StringJoiner commandJoiner = new StringJoiner(" ");
        commandJoiner.add("delete").add(String.valueOf(deleteDisplayIndex));
        return commandJoiner.toString();
    }
}

Related

  1. capitalise(String string)
  2. convertListToString(String[] stringList)
  3. getTraceString(StackTraceElement[] stackTraceElements)
  4. implode(T[] array, String delim)
  5. implodeString(Iterable strings, String delimiter)
  6. incrementalComputationOfComponentWiseAverage(List average, int n, List newItems)