Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;

public class Main {
    public static String getNoCommandsAlert(ArrayList<String> commands) {
        if (commands == null || commands.size() == 0) {
            String warn = "<div class=\"alert alert-warning\" role=\"alert\">\n"
                    + "    <strong>No Commands listed</strong><br />\n"
                    + "    Have a look at the left panel to learn see to add commands" + "</div>";
            return warn;
        }
        return "";
    }
}