Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String addAttribute(String p_name, String p_value) {
        StringBuffer l_buf = null;

        if (p_value != null) {
            l_buf = new StringBuffer();
            l_buf.append(" ").append(p_name).append("=\"");
            l_buf.append(p_value).append("\"");
            return l_buf.toString();
        }

        return "";
    }
}