Here you can find the source of getArgPairsSeparatedByChar(String[] args, String separator)
public static Map<String, String> getArgPairsSeparatedByChar(String[] args, String separator)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String> getArgPairsSeparatedByChar(String[] args, String separator) { Map<String, String> argPairs = new HashMap<String, String>(); if (args != null) { // find pairs separated by the = sign for (String argPair : args) { String[] pair = argPair.split("="); if (pair.length > 1) { argPairs.put(pair[0], pair[1]); }/*from www . j a v a2 s .c om*/ } } return argPairs; } }