Here you can find the source of generateDeleteCommand(int deleteDisplayIndex)
public static String generateDeleteCommand(int deleteDisplayIndex)
//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(); } }