Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;

public class Main {
    public static String wrappedContext(HashMap<String, String> context) {
        String _context = "";
        if (context == null) {
            return "";
        }
        for (String key : context.keySet()) {
            _context += key + ":" + context.get(key) + ",";
        }
        _context = _context.substring(0, _context.length() - 1);
        return _context;
    }
}