Here you can find the source of parse(String[] args)
public static Map<String, String> parse(String[] args)
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String> parse(String[] args) { HashMap<String, String> ret = new HashMap<>(); for (int i = 0; i < args.length; i += 2) { String key = args[i].substring(1); ret.put(key.substring(1), args[i + 1]); }// w w w . ja v a2 s .c o m return ret; } }